1,, SUSE Labs,, 02.10.2016,, ‹#› 02.10.2016 Sometimes it is good to be sleepy Pavel Machek, SUSE Labs.

Slides:



Advertisements
Similar presentations
Linux TV Tuner - Implementation overview. Feasibility Study Business Problem The client requires a simple and cost effective solution to watch TV through.
Advertisements

Device Drivers. Linux Device Drivers Linux supports three types of hardware device: character, block and network –character devices: R/W without buffering.
Operating Systems Manage system resources –CPU scheduling –Process management –Memory management –Input/Output device management –Storage device management.
A comparison of two cars I would like to own: an Audi and a BMW Presented by: Paul Garlick Project 15: Buying Your First Car January 13, 2012.
HARDWARE Lesson 1. A computer is an information processing machine It can only follow the instructions it is given What is a Computer? I’m ONLY a machine!
The Kernel Abstraction. Challenge: Protection How do we execute code with restricted privileges? – Either because the code is buggy or if it might be.
Introduction to Kernel
An ipad is like an a portatil computer, the functions of the ipad are similar of the functions of the iphone or the ipod touch but bigger, with a better.
Operating Systems Concepts 1. A Computer Model An operating system has to deal with the fact that a computer is made up of a CPU, random access memory.
Asst.Prof.Dr.Ahmet Ünveren SPRING Computer Engineering Department Asst.Prof.Dr.Ahmet Ünveren SPRING Computer Engineering Department.
I/O Tanenbaum, ch. 5 p. 329 – 427 Silberschatz, ch. 13 p
The hills across the valley of the Ebro were long and white. On this side there was no shade and no trees and the station was between two lines of rails.
Chapter 3.1:Operating Systems Concepts 1. A Computer Model An operating system has to deal with the fact that a computer is made up of a CPU, random access.
Host and Application Security Lesson 4: The Win32 Boot Process.
hardware and operating systems basics.
Wave Relay System and General Project Details. Wave Relay System Provides seamless multi-hop connectivity Operates at layer 2 of networking stack Seamless.
10 Things You Should Tell Your Children EVERYDay 1) I love you! - You should say this everyday as many times as you possibly can. Say it until you get.
ITE 1 Chapter 5. Chapter 5 is a Large Chapter It has a great deal of useful information about operating systems. You will find this VERY helpful when.
1 ITSK 2611 Welcome. 2 Operating System 3 What is an OS Resource Manager –Disk –Memory –CPU Device Manager –Printers –Video Card –Sound Card Utility.
Dedication For mother and siblings, Who strongly support me every step of the way.
Angels Watching Over Me
Alumnas: María Sol Pérez Fernández y María Agustina Macchi.
Review Security Hardening IPTables SELinux. Today Installations and updates – Rpm command and packages Apache “Issue Ownership”
Bill's Amazing Content Rotator jQuery Content Rotator.
Presented by Mark Thompson High Level Overview and Demo.
Course Overview Ted Baker  Andy Wang COP 5641 / CIS 4930.
CISC 471 First Exam Review Game Questions. Overview 1 Draw the standard phases of a compiler for compiling a high level language to machine code, showing.
A comparison of two cars I would like to own: a Toyota FJ Cruiser and a Jeep Wrangler Presented by: Jack Kenney Project 15: Buying Your First Car January.
Course Overview Ted Baker  Andy Wang COP 5641 / CIS 4930.
1 EECS 373 Design of Microprocessor-Based Systems Mark Brehob University of Michigan Lecture 6: Interrupts Sept. 19 th 2013 Slides developed in part by.
Love Our Sleep Week 9 We need 10 – 12 hours of sleep each night so our body can rest, repair and recover from an active day.
Logging In to Your New Laptop Same login as before EXCEPT no space between last and first name Didn’t have a space before? Then, same login.
 Investigation By Myre Adnan. PROBLEM STATEMENT AND DESIGN BRIEF.
Course Overview Ted Baker  Andy Wang COP 5641 / CIS 4930.
How I Should Talk to My Teacher
© 2005 Snack Music Productions. When I lie in bed at night and I can't get to sleep, I'll just sit and talk to You, it's better than counting sheep, While.
How can I tell what nutrients are in the food I eat ?
:59:45 This morning has following my thoughts.
 This work confers an application which makes possible to use a Bluetooth enabled mobile phone to remote control home appliances such electric fan, LEDs.
A comparison of two cars I would like to own: a Corvette convertible and a Jeep. Presented by: Aaliyah Scott Project 15 Buying Your First Car 4/30/12.
1,, SUSE Labs,, ,, ‹#› System suspend (and system resume, if you are lucky :-) Pavel Machek, SUSE Labs.
Firmware Test Suite Colin Ian King Kernel Engineer Hardware Enablement, Canonical.
1,, SUSE Labs,, ,, ‹#› Free your cell phone (and use ATD to dial) Pavel Machek, SUSE Labs.
Thinking Outside the Box Linux. Question: What form of transportation racks up the most passenger miles per year? Not cars Not bicycles Not buses Not.
1,, SUSE Labs,, ,, hours of battery life on your lap(top) Pavel Machek, SUSE Labs.
Introduction to Kernel
Chapter Objectives In this chapter, you will learn:
Operating System Review
LINUX WINDOWS Vs..
Effective communication
Power Management Discussion
UNIT 11 A1+ SHE’S REALLY FAMOUS! Part I.
System suspend (short version) Pavel Machek, SUSE Labs 7/4/2018.
CS 3305 System Calls Lecture 7.
CMPE419 Mobile Application Development
Contact hp – help & support | contact hp technical support.
Welcome to FACS (Family and Consumer Sciences) Mrs. Oliver
Intro to Multiprocessing
Operating System Review
Chapter 2: The Linux System Part 2
4A Unit 5 Then and Now.
Talking on the Phone.
Windows Virtual PC / Hyper-V
Hi, lovely to meet you all…….. Etc……..
Technology.
A Useful Footnote Martha Cox Population Health Research Unit Community Health & Epidemiology Dalhousie University Good morning. We've all had this happen:
Operating Systems 1: News
IST346: Operating Systems / Command Line Interfaces
Welcome to the CMSC 104 Class!!!
CMPE419 Mobile Application Development
Presentation transcript:

1,, SUSE Labs,, ,, ‹#› Sometimes it is good to be sleepy Pavel Machek, SUSE Labs

2,, SUSE Labs,, ,, ‹#› EnergySTAR Mandates sleep after 30 minutes of inactivity, by default Common implementations sleep machine after keyboard/mouse inactivity...do some hacks with interrupt activity...do not really work, by design

3,, SUSE Labs,, ,, ‹#› One Laptop Per Child PC style machine...but can suspend/resume in 300msec...and can keep screen and wlan powered while rest of system is sleeping -> good candidate for sleepy linux

4,, SUSE Labs,, ,, ‹#› OpenMoko Mobile phone hardware sleepy is really neccessary there traditionally, hacks are used for this like Motorola „drive me from userland“ stack

5,, SUSE Labs,, ,, ‹#› Notebooks notebook running in a bag is a problem notebook sleeping on the table, when it should be compiling is a problem if you want to be awaken by mp3, obvious thing is sleep 8h; mpg123 alarm.mp3 except that you'll have to listen to the fan whole night and machine will consume 15W instead of 1W

6,, SUSE Labs,, ,, ‹#› Existing interface ( sleep 8h; mpg123 alarm.mp3 ) & echo MAGI > /proc/acpi/wakeup cd /sys/class/rtc/rtc0 echo $(( $(cat since_epoch) + $[7*60* *60] )) > wakealarm nice interface, eh? notice that strings /proc/acpi/wakeup are BIOS defined, and do not seem to be standardized

7,, SUSE Labs,, ,, ‹#› Proposed interface I'd like „sleep 8h; mpg123“ to just work – sleep machine for 8 hours, then wake up and start playing kernel side is non-trivial, but doable demo implementation exists UP only, many features need to be disabled unfortunately, that means that every application that polls something will break sleep lets just fix them

8,, SUSE Labs,, ,, ‹#› Drivers normally, drivers are called in top-down manner to go to sleep sleepy drivers just sleep their hw and tell the rest of kernel „as far as I'm concerned, you can just cut the power to me“

9,, SUSE Labs,, ,, ‹#› Questions? ?