I like the setup wicknix has come up with for z2sid so I've started work on a u-boot compatible version. Ultimately, I'd like it to support both 2.6.29 and u-booted zipits so I am taking that into account as I'm making the required u-boot modifications.
For some reason debian sid was seeing the lid switch as "pressed" when open and "released" when closed. Same with the power switch. What this meant was that if you pressed the pwr or lid switches, the keymap got all screwed up cuz it thought you were pressing two buttons at the same time. To fix this, what I did was modify the kernel code to disable mapping of the power and lid switch as buttons. In order to make the lid switch work, I borrowed dTal/rkdavis' power management daemon. I made a minor change to set screen blanking to never when on AC and 5 minutes if on battery (rc2). From the code comments:
* Manages screen and keyboard backlights:
Recent comments
18 weeks 1 day ago
18 weeks 1 day ago
18 weeks 1 day ago
18 weeks 1 day ago
18 weeks 2 days ago
18 weeks 2 days ago
18 weeks 2 days ago
18 weeks 2 days ago
19 weeks 3 days ago
19 weeks 5 days ago