Austin Che wrote: >> On Fri, Sep 14, 2007 at 12:39:18PM -0400, ext Jesse Guardiani wrote: >> >>> I'd personally love to see DSME open sourced. >>> >> Oh, me too. Nothing I've said on this list should indicate otherwise. >> >> >>> In particular, there are >>> screen ON/OFF/Notify >>> events that it sends/receives via dbus that I'd love to extend. For >>> example, I've got a DSME >>> related ticket that I'd like to close using dbus, but that probably >>> isn't possible with DSME as-is: >>> https://www.guardiani.us/projects/kagu/ticket/52 >>> >> You can just bypass DSME and deal with omapfb directly: see >> asm-arm/arch-omap/omapfb.h. Note that DSME does this every 1s or so, so >> you're in a godawful race, so you might just have to nuke the blanking >> plugin or something. >> > > Jesse, > > I had previously looked at blanking the screen and figured out how > to do it (not using dbus however) and there's no race with > DSME. It stays off until the touchscreen or key is pressed. Here's > code that'll blank the screen: > > #include <fcntl.h> > #include <sys/ioctl.h> > #include <linux/fb.h> > int main(int argc, char **argv) > { > int fb = open("/dev/fb0", O_NONBLOCK); > if (fb < 0) perror("Error opening /dev/fb0"); > if (ioctl(fb, FBIOBLANK, VESA_POWERDOWN) < 0) perror("Blanking error"); > close(fb); > } >
But that's run as root, right? I need to be able to blank from userspace without root as a normal user. -- Jesse Guardiani Programmer/Sys Admin [EMAIL PROTECTED] _______________________________________________ maemo-developers mailing list [email protected] https://lists.maemo.org/mailman/listinfo/maemo-developers
