Page 2 of 6 FirstFirst 123456 LastLast
Results 11 to 20 of 55

Thread: Autodimming monitor after 2 seconds of inactivity. (Solution inside)

  1. #11
    The Vauxhall Vectra Project ccsnet's Avatar
    Join Date
    Jan 2003
    Location
    Morecambe, Lancs, UK ( Just For The Moment )
    Posts
    2,680
    Quote Originally Posted by Gobby
    Good find JIT. Just tested, works really well, as Uno3whO says could do with only working at certain times, would only take 5 mins to knock up a quick app. May do later if I have a bit of spare time.
    A new feature for RR ?

    Terran

  2. #12
    Newbie
    Join Date
    Jan 2004
    Location
    St. Louis
    Posts
    34
    I don't use these tools but here's a quick way to solve the time problem of when you activate your screensaver....

    Do everything justintime says in his post. Then, to only have the screensaver (power dimmer) activate only when it's dark you could write a quick vbs script to get the current time and if it's greater than the time it gets dark in your area, then activate the screensaver. Here's some code.

    Code:
    Option Explicit
    Dim objShell
    Dim strRegKey, strRegValue
    Dim strOn, curTime, cmpTime, activate, varOn
    
    'This is where you set the cmpTime variable in this format TimeSerial(hh,mm,ss)
    'hh is 24 hour format so 6:35 PM would be set as TimeSerial(18,35,00)
    
    cmpTime = TimeSerial(18,35,00)
    
    curTime=cdate(Time)
    
    If curTime > cmpTime Then
    varOn = "1"
    Else
    varOn = "0"
    End if
    
    strRegKey = "HKCU\Control Panel\Desktop\"
    strRegValue = "ScreenSaveActive"
    strOn = varOn
    Set objShell = CreateObject("WScript.Shell")
    objShell.RegWrite strRegKey & strRegValue, strOn, "REG_SZ"
    
    
    WScript.Quit
    Copy the above into notepad and save it as timecheck.vbs in your scripts folder or wherever.

    Then go into Scheduled Tasks and create a schedule to run this script however often as you'd like maybe every 20 minutes. All the script does is activate the screensaver after a specific time.

    It's not a perfect solution because there's that twilight period when you're driving but you can determine what's best.

    Alternative to creating a Scheduled Task you could place this script in your "Startup" folder and run it once. But again, if you're driving for an hour and it goes from daylight to dark, it won't activate the screensaver. Anyway, just a suggestion.

    [edit] I just installed the powerdimmer.scr and it works fine. If you password on resume then the screensaver just goes straight to black. Good find on the powerdimmer!

  3. #13
    Variable Bitrate Superduck's Avatar
    Join Date
    Oct 2003
    Location
    Vancouver BC
    Posts
    296
    Just to add some more fuel to the custom fire...

    Didn't I read somwhere that at least one of the FE's had support for an input?

    If the FE guys wouldn't mind writing code for it, it wouldn't be too hard to hook up a simple light sensor to automatically dim the display when it gets below a certain light threshold. I don't think the wiring would be too hard to do.

    The first link I pulled off Google has a fairly basic circuit that could be used for this application.
    http://www.uoguelph.ca/~antoon/circ/sensor2.htm

    Anyway, maybe not worth the bother, a set time would probably suffice, but at least it'll dim when you pull into an underground or go through a tunnel. That, and the fact that it's just cool

    Cheers,

    Kris
    How Much Horsepower Can I have And Still Go To Heaven?

  4. #14
    Banned RPM_VR4's Avatar
    Join Date
    Nov 2004
    Location
    L.A.
    Posts
    1,893
    You are crazy on top of things JIT That's a pretty cool hack too Tipastar.

    There are too many damn hacks in this community though (still it is cool that it can currently be done). It is way too hard to get everything setup correctly on a new machine. We need a background program (like GC) or front-end plug-in. Maybe the entire program would be a screen-saver with a details page that lets you set the settings. Or maybe in addition to the program/plug-in you would have to enable a screen-saver that notifies the process of a screen-saver event (this screen-saver could by auto-installed/selected by the app/plugin of course).

    Here is the full feature set as I see it...

    Code:
    First, you could use a light sensor if you have one.
    If not, it could fine out sun-rise/set times like GC.
    You set the max fade-out for night time.
    For the hour leading up to night time, it would fade only partially.
    If you had a light sensor, it would fade based on its level.
    You set the screen-saver activity time-out
    You set the amount of time it takes to fade to full dark.
    You set the time to fade back up after a touch.
    Preferably if it were non-screen-saver based, you could also set the max-unfaded brightness in case you never want it full-bright at night, even when you are using it.

    Code:
    Example:
    I would set max fade-out level to 70% brightness (I don't like much of a dim).
    I would set night non-fade-out to 90% brightness.
    I would have it start to fade out after 3 seconds of inactivity.
    I would have it take an additional 5 seconds to reach full fade-out.
    On touch, I would have it quickly fade back up over 0.5 seconds.
    Now, from my example, if it is totally dark at 8:00pm, and the current time is 7:30pm, the display would be at 95% brightness when in use, and fade to 85% brightness when not in use (because 7:30 is the half-way point between 7-8). Once it is 8, it would be 90% when used and 70% when idle just as I set it to.

    This way there would be a nice time-fade that would eliminate the chance of having it suddenly fading-out if you are driving at 8:00. I like features like this to not even be noticeable.

    Of course, an analog light sensor that could report 5 or more levels between full light and full darkness would be even better.

  5. #15
    Maximum Bitrate
    Join Date
    May 2005
    Posts
    725
    I see one problem - When I run the program manually it dims everything on the screen, however when it is configured as a screensaver it blanks the screen then dims it...

  6. #16
    Raw Wave justintime's Avatar
    Join Date
    Apr 2005
    Posts
    2,695
    Check and see that you DON"T have 'password on resume' feature enabled in your screensaver control panel.

    Quote Originally Posted by sebberry
    I see one problem - When I run the program manually it dims everything on the screen, however when it is configured as a screensaver it blanks the screen then dims it...
    2002 Honda CR-V
    Carputer progress: 90% [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ -]
    Spent so far: $1105.90


    Download the NEXUS Skin for Centrafuse
    ...or even Listen to my music

  7. #17
    Newbie
    Join Date
    Nov 2005
    Posts
    39
    I think we're on the right track. What about this though:

    My Alpine headunit automatically dims when my headlights are one. Since this is either controlled by a manual switch or a factory-installed light sensor, we're already one step ahead. Does anyone know how to wire something like that for a computer? Or can anyone think of a way that it might be possible so we can investigate further?

    Dan

  8. #18
    Raw Wave
    Join Date
    Jun 2004
    Location
    On the beach
    Posts
    2,223
    I'm going to have a word with Ol33l and see if he can incorporate something similar in to GammaControl. I've been thinking and it seems pointless to create a further app when GammaControl is soo close. I've been experimenting with some vb code since yesterday to fade the screen and it seems to be working pretty well.

  9. #19
    Raw Wave justintime's Avatar
    Join Date
    Apr 2005
    Posts
    2,695
    Gobby: Good idea. Let's get ol33l in here.
    2002 Honda CR-V
    Carputer progress: 90% [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ -]
    Spent so far: $1105.90


    Download the NEXUS Skin for Centrafuse
    ...or even Listen to my music

  10. #20
    Banned RPM_VR4's Avatar
    Join Date
    Nov 2004
    Location
    L.A.
    Posts
    1,893
    chronot150: Yes, most cars have a "dimmer" wire as part of the radio harness (it is usually the orange wire). It is 12V when your lights are on and 0V otherwise. I'm looking for something a lot more sophisticated than that though.

Page 2 of 6 FirstFirst 123456 LastLast

Similar Threads

  1. Replies: 0
    Last Post: 07-08-2005, 04:08 PM
  2. A solution for powering 12v stuff inside
    By zootjeff in forum Power Supplies
    Replies: 21
    Last Post: 12-17-2004, 06:21 PM
  3. Best Carputer Solution. Ideas Inside!
    By voidunknown in forum Newbie
    Replies: 16
    Last Post: 08-25-2004, 11:35 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •