Bug 4767
Summary: | RFE: console_blank_hook that can call userspace program | ||
---|---|---|---|
Product: | Drivers | Reporter: | Eugene Pavlovsky (heilong) |
Component: | Console/Framebuffers | Assignee: | Antonino Daplas (adaplas) |
Status: | REJECTED WILL_NOT_FIX | ||
Severity: | normal | ||
Priority: | P2 | ||
Hardware: | i386 | ||
OS: | Linux | ||
Kernel Version: | 2.6.12 | Subsystem: | |
Regression: | --- | Bisected commit-id: | |
Attachments: | implemented this functionality in a kernel module |
Description
Eugene Pavlovsky
2005-06-20 03:36:33 UTC
Created attachment 5238 [details]
implemented this functionality in a kernel module
I've actually checked the kernel sources on how this can be done and
implemented the proposed functionality in a kernel module. The module attaches
a console blank hook function that uses kernel's call_usermodehelper() to
execute /sbin/user_vc_blank (defined at compile-time) to blank/unblank the
console. I've written a sample script (which I use on my laptop) that uses
radeontool to turn the LCD backlight off/on. Maybe this functionality should be
moved to the kernel. On the other hand, as it still needs userspace utilities,
maybe it's better off as a module. Anyway, please give it a thought, or at
least made this module available.
Present this to lkml and linux-fbdev-devel list, if you want this functionality. |