I've finally managed to get screen dimming using a PWM GPIO in on my Pi,
works great with a few modifications in the Lua files.

Just a quick question about what changes I've made, I did find this in
the DisplayOffApplet.lua:


Code:
--------------------
    
  -- enable backlight on on a timer because the first revision of the official 
Pi display
  -- isn't fast enough to handle backlight on directly/has a hardware 
bug/something else?
  local timerOn = Timer(600,
  
--------------------


I'm guessing the 600 here is 600 millisecond delay? If so, I've changed
it to 6ms in my modificatons and so far it seems to be working OK. I've
not used LUA before however, so I don't really know how to completely
remove the timer without breaking something.

After changes the screen does turn on and off much quicker when the
player is turned on and off, but I was wondering if this will cause any
issues doing it this was as it does seem a little hacky!

The only changes I did other than that was changing the paths to the
files in /sys/class, and the values from 0-255 to 0-100 and so far it
seems to be working great. :)


------------------------------------------------------------------------
TheHypnoToad's Profile: http://forums.slimdevices.com/member.php?userid=69197
View this thread: http://forums.slimdevices.com/showthread.php?t=109619

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to