From: James S. <jsi...@tr...> - 2001-06-21 05:27:21
|
> Hmmm, I'll have to take a closer look at how powermanagement is > implement in Linux. I have some form of power management going. It compiles but I have to test it tomorrow. I have to still implement a userland interface to send a event to power down. I'm hooked on send a EV_KEY with the code being KEY_SUSPEND or KEY_POWER. As for the touchscreen diming the light should really be apart of the fbdev api. Especially since laptops have back and front lights but no touchscreens usually. > > P.S > > serio->write can send only one char at a time? > > Yes, it has been designed for low speed devices, where the overhead > doesn't matter. But there is not a problem with redesigning it. The problem I'm having is I have to create packets and send them to the serial device. For example for the power LED on the ipaq you have to create a led packet which is: typedef struct { unsigned char OffOnBlink; /* 0=off 1=on 2=Blink */ unsigned char TotalTime; /* Units of 5 seconds */ unsigned char OnTime; /* units of 100m/s */ unsigned char OffTime; /* units of 100m/s */ } LED_IN; |