|
 | mce-io.c (diff) |
Commit
9309502109da994974c841259633ad2bace625d8
by Merlijn Boris Wolf Wajermce.io: close fd in mce_unregister_io_monitor
mce apparently never closes the backing fd of a GIOChannel, this was evident in /proc/<mce-pid>/fd, after hotplugging and removing input devices a few times. (Note the fds that are still open, pointing to /dev/input/event* files that are no longer there - 'deleted')
# ls -lsh /proc/1397/fd total 0 0 lrwx------ 1 root root 64 Feb 11 13:50 0 -> /dev/pts/4 0 lrwx------ 1 root root 64 Feb 11 13:50 1 -> /dev/pts/4 0 lr-x------ 1 root root 64 Feb 11 13:50 10 -> anon_inode:inotify 0 lrwx------ 1 root root 64 Feb 11 13:50 11 -> socket:[232872] 0 lr-x------ 1 root root 64 Feb 11 13:50 12 -> /dev/input/event2 (deleted) 0 lr-x------ 1 root root 64 Feb 11 13:50 13 -> /dev/input/event4 (deleted) 0 lr-x------ 1 root root 64 Feb 11 13:50 14 -> /dev/input/event3 (deleted) 0 lr-x------ 1 root root 64 Feb 11 13:50 15 -> /dev/input/event2 (deleted) 0 lr-x------ 1 root root 64 Feb 11 13:50 16 -> /dev/input/event2 (deleted) 0 lr-x------ 1 root root 64 Feb 11 13:50 17 -> /dev/input/event6 0 lr-x------ 1 root root 64 Feb 11 13:50 18 -> /dev/input/event1 0 lr-x------ 1 root root 64 Feb 11 13:50 19 -> /dev/input/event0 0 lrwx------ 1 root root 64 Feb 11 13:50 2 -> /dev/pts/4 0 lrwx------ 1 root root 64 Feb 11 13:50 20 -> /dev/fb0 0 lr-x------ 1 root root 64 Feb 11 13:50 21 -> /dev/input/event2 (deleted) 0 lr-x------ 1 root root 64 Feb 11 13:50 22 -> /dev/input/event3 (deleted) 0 lr-x------ 1 root root 64 Feb 11 13:50 23 -> /dev/input/event4 (deleted) 0 lr-x------ 1 root root 64 Feb 11 13:50 24 -> /dev/input/event2 0 lr-x------ 1 root root 64 Feb 11 13:50 25 -> /dev/input/event2 0 lr-x------ 1 root root 64 Feb 11 13:50 26 -> /dev/input/event3 0 lr-x------ 1 root root 64 Feb 11 13:50 27 -> /dev/input/event4 0 lr-x------ 1 root root 64 Feb 11 13:50 28 -> /dev/input/event5 0 lrwx------ 1 root root 64 Feb 11 13:50 3 -> anon_inode:[eventfd] 0 lrwx------ 1 root root 64 Feb 11 13:50 4 -> socket:[232111] 0 lrwx------ 1 root root 64 Feb 11 13:50 5 -> socket:[234536] 0 lrwx------ 1 root root 64 Feb 11 13:50 6 -> socket:[234537] 0 lrwx------ 1 root root 64 Feb 11 13:50 7 -> socket:[234540] 0 lrwx------ 1 root root 64 Feb 11 13:50 8 -> anon_inode:[eventfd] 0 lrwx------ 1 root root 64 Feb 11 13:50 9 -> anon_inode:[eventfd]
After this patch, the result looks like this:
# ls -lsh /proc/3558/fd total 0 0 lrwx------ 1 root root 64 Feb 11 13:54 0 -> /dev/pts/4 0 lrwx------ 1 root root 64 Feb 11 13:54 1 -> /dev/pts/4 0 lr-x------ 1 root root 64 Feb 11 13:54 10 -> anon_inode:inotify 0 lrwx------ 1 root root 64 Feb 11 13:54 11 -> /dev/fb0 0 lr-x------ 1 root root 64 Feb 11 13:55 12 -> /dev/input/event2 0 lr-x------ 1 root root 64 Feb 11 13:55 13 -> /dev/input/event2 0 lr-x------ 1 root root 64 Feb 11 13:55 14 -> /dev/input/event3 0 lr-x------ 1 root root 64 Feb 11 13:55 15 -> /dev/input/event4 0 lr-x------ 1 root root 64 Feb 11 13:55 16 -> /dev/input/event5 0 lr-x------ 1 root root 64 Feb 11 13:55 17 -> /dev/input/event6 0 lr-x------ 1 root root 64 Feb 11 13:55 18 -> /dev/input/event1 0 lr-x------ 1 root root 64 Feb 11 13:55 19 -> /dev/input/event0 0 lrwx------ 1 root root 64 Feb 11 13:54 2 -> /dev/pts/4 0 lrwx------ 1 root root 64 Feb 11 13:55 20 -> socket:[236198] 0 lrwx------ 1 root root 64 Feb 11 13:54 3 -> anon_inode:[eventfd] 0 lrwx------ 1 root root 64 Feb 11 13:54 4 -> socket:[237579] 0 lrwx------ 1 root root 64 Feb 11 13:54 5 -> socket:[236179] 0 lrwx------ 1 root root 64 Feb 11 13:54 6 -> socket:[237580] 0 lrwx------ 1 root root 64 Feb 11 13:54 7 -> socket:[235421] 0 lrwx------ 1 root root 64 Feb 11 13:54 8 -> anon_inode:[eventfd] 0 lrwx------ 1 root root 64 Feb 11 13:54 9 -> anon_inode:[eventfd]
|
 | mce-io.c (diff) |
|
 | debian/changelog (diff) |
|
 | event-switches.c (diff) |
 | mce-hal.c (diff) |
 | modules/homekey.c (diff) |
|
 | event-switches.c (diff) |
|
 | mce-modules.c (diff) |
|
 | mce-io.c (diff) |
|
 | debian/control (diff) |
|
 | mce-io.h (diff) |
 | mce-io.c (diff) |
|
 | modules/keypad.c (diff) |
 | modules/keypad.h (diff) |
|
 | debian/mce.service |
 | Makefile (diff) |
 | debian/control (diff) |
 | mce.c (diff) |
|
 | debian/changelog (diff) |
Commit
57786e7d26cb32fefc149d8d07ceee239e0bdd08
by Merlijn Boris Wolf Wajermodules: display: also use dpms when (un)blanking
When using DRM for display management, as opposed to just fbdev, just blanking /dev/fb0 is not enough to make devices actually enter deeper idle states, DPMS does the trick by telling X11 to send the right DRM ioctls.
|
 | modules/display.c (diff) |
 | Makefile (diff) |
Commit
de7cd3d067a7c23e9f7e1abc9b2bb1453211eefb
by Merlijn Boris Wolf Wajertklock: use X11 to enable and disable the touchscreen
This will make sure that:
1. We do not get touchscreen input events when the device is locked (and not accidentally start/stop programs/apps) 2. X will close the fd X has to the device on disable, so that the device can idle (power management wise), once mce also starts to release the handle to this device.
|
 | tklock.c (diff) |
 | Makefile (diff) |
|
 | debian/rules (diff) |
|
 | debian/changelog (diff) |
Commit
06fd83c3612fbf3b07c4658e5c1532fead71733f
by Merlijn Boris Wolf Wajerfilter-brightness-als: support droid4 ALS
Supporting dimming the display backlight brightness, the LEDs and the keyboard backlight based upon the Ambient Light Sensor in the Droid 4.
The values in the profiles are work in progress, I have yet to test very dark rooms.
|
 | modules/filter-brightness-als.c (diff) |
 | modules/filter-brightness-als.h (diff) |
|
 | event-input.c (diff) |
 | mce.h (diff) |
 | tklock.c (diff) |
 | mce.c (diff) |
|
 | debian/changelog (diff) |
|
 | debian/control (diff) |