Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: Laptop Battery status?

  1. #1
    Wants to make it harder monkeyracer's Avatar
    Join Date
    May 2007
    Location
    Lakehood, CO
    Posts
    1,463

    Laptop Battery status?

    I searched but could not find.

    I would like to have a slider or custom indicator that shows the laptop's battery status; charging, charged, what percent, etc.

    Why? Well, I am installing the laptop in the car, and there will be times when I want to use it after I shut off the engine, and want to have some kind of indicator to show how much time I have left before it goes dead. Right now, I have to minimize RR, then highlight the icon in the tray, not easy to do without a mouse.

    Any help would be appreciated.
    2007 Chrysler PT Cruiser TE
    Car PC Progress:
    Planning.......[---------X-] 95%
    Parts...........[---------X-] 90%
    Fabrication...[---------X-] 90%
    RR Skin........[---------X-] 95%
    View my
    Worklog
    Road Runner Skins
    Website
    Favorite thread EVER!

  2. #2
    Constant Bitrate slvrsol's Avatar
    Join Date
    Mar 2007
    Posts
    148
    There is a plugin that uses labels out there somewhere.

  3. #3
    The Last Good Gremlin GizmoQ's Avatar
    Join Date
    Nov 2004
    Location
    St Louis
    Posts
    2,347
    HARDWARE: Fujitsu Stylistic ST5111w/WiFi and dock, internal Hitachi 500G HD, external 1TB HD, Sierra Wireless Aircard 550, DVD-RW, BoomzBox HD radio, XM Commander, Delorme GPS, Saitek X-52 Pro joystick, BluSoleil Bluetooth, TPMS, FB, Elm327

  4. #4
    Wants to make it harder monkeyracer's Avatar
    Join Date
    May 2007
    Location
    Lakehood, CO
    Posts
    1,463
    thanks, that did not come up when I searched...
    2007 Chrysler PT Cruiser TE
    Car PC Progress:
    Planning.......[---------X-] 95%
    Parts...........[---------X-] 90%
    Fabrication...[---------X-] 90%
    RR Skin........[---------X-] 95%
    View my
    Worklog
    Road Runner Skins
    Website
    Favorite thread EVER!

  5. #5
    The Last Good Gremlin GizmoQ's Avatar
    Join Date
    Nov 2004
    Location
    St Louis
    Posts
    2,347
    Np
    HARDWARE: Fujitsu Stylistic ST5111w/WiFi and dock, internal Hitachi 500G HD, external 1TB HD, Sierra Wireless Aircard 550, DVD-RW, BoomzBox HD radio, XM Commander, Delorme GPS, Saitek X-52 Pro joystick, BluSoleil Bluetooth, TPMS, FB, Elm327

  6. #6
    Wants to make it harder monkeyracer's Avatar
    Join Date
    May 2007
    Location
    Lakehood, CO
    Posts
    1,463
    Ok, I got that to work, but I'm having trouble making a slider for it.

    I have the slider defined as such:

    Code:
    /, Y,  Back Slider file path
    Y01,"battery\slider_*.gif"
    
    /, S, x, y, w, h, x1, y1, w1, h1, O, Style, Pointer file path, h2, Code;SLIDERCODES, Tooltip
    S01,5,460,30,14,-250,0,30,14,H,01," ",14,"$BATT$",
    .


    Code:
    "ONSKINSTART","StrRepl;BATTPERCENT;%;;BATTERY||EVAL;BATT;$BATTERY$*656",menu.skin
    .
    And I have 21 images named "slider_*.gif" (0-20) in a folder called "battery" in my skin's folder.
    The first time I load the skin, the slider is there and works. But if I send the command "RELOADSKIN" the slider dissappears.

    What am I missing?
    2007 Chrysler PT Cruiser TE
    Car PC Progress:
    Planning.......[---------X-] 95%
    Parts...........[---------X-] 90%
    Fabrication...[---------X-] 90%
    RR Skin........[---------X-] 95%
    View my
    Worklog
    Road Runner Skins
    Website
    Favorite thread EVER!

  7. #7
    The Curator
    Auto Apps:loading...
    Blue ZX3's Avatar
    Join Date
    Aug 2004
    Location
    Chicago area,IL
    Posts
    5,079
    to me and given info, could be a bug in the plugin?
    RideRunner...The #1 FE, PERIOD.

    Current Project: DFXVoice [v1.0 Released]
    Next in line: RRMedia v2.0

    DFX 5.1.1 Skin
    Appstore Link

    My RideRunner Plugins
    RRMedia
    RRExtended
    DFXVoice

    "There are no bugs - only undocumented features."

  8. #8
    Wants to make it harder monkeyracer's Avatar
    Join Date
    May 2007
    Location
    Lakehood, CO
    Posts
    1,463
    In which plugin?

    RRStrings or Powermon?

    Because the Label "BATTPERCENT" doesn't have any problems after reload. I would assume that if it were the powermon plugin, that label would go away as well, but it doesn't.
    2007 Chrysler PT Cruiser TE
    Car PC Progress:
    Planning.......[---------X-] 95%
    Parts...........[---------X-] 90%
    Fabrication...[---------X-] 90%
    RR Skin........[---------X-] 95%
    View my
    Worklog
    Road Runner Skins
    Website
    Favorite thread EVER!

  9. #9
    Wants to make it harder monkeyracer's Avatar
    Join Date
    May 2007
    Location
    Lakehood, CO
    Posts
    1,463
    Let me see if I understand the way these plugins work;

    Powermon:
    Reads data from the laptop's "Power meter" interprets the data and creates four labels -
    BATTSTATE - Label returned as text, one of two words (Charging or Discharging)
    POWERSRC - Label returned as text, one of two words (Battery/External)
    BATTLEVEL - Label returned as text, one of four words (High/Low/Critical/Charging)
    BATTPERCENT - Label returned as a number, with the text "%" appended (xx%)

    RRStrings, specifically StrRepl:
    When the command is issued, it takes the command, and replaces one string of characters with another, and creates a new variable. So "StrRepl;BATTPERCENT;%;;BATTERY" will take the label "battpercent" and replace "%" with "" and make a new variable called "BATTERY" which is referenced as "$BATTERY$".

    Now where I am confused is when are these codes valid?

    On skin start (with the X code) but when do they expire? Reload? Exit?

    This compared to the labels and codes that are hard coded in RR (TIME, for example) or codes in the exectbl.ini that don't expire or change with the status of RR.

    Basically, I want to be able to show a 21 step slider AND a label that represent what the % charge of the laptop's battery is. I want this to not be affected by changing the text color or background, or other things that require RR to be reloaded.
    2007 Chrysler PT Cruiser TE
    Car PC Progress:
    Planning.......[---------X-] 95%
    Parts...........[---------X-] 90%
    Fabrication...[---------X-] 90%
    RR Skin........[---------X-] 95%
    View my
    Worklog
    Road Runner Skins
    Website
    Favorite thread EVER!

  10. #10
    The Curator
    Auto Apps:loading...
    Blue ZX3's Avatar
    Join Date
    Aug 2004
    Location
    Chicago area,IL
    Posts
    5,079
    First I would check the values of both the labels and both of your vars after skin reload and see what the value are to see where exactly the error/prob is at.
    RideRunner...The #1 FE, PERIOD.

    Current Project: DFXVoice [v1.0 Released]
    Next in line: RRMedia v2.0

    DFX 5.1.1 Skin
    Appstore Link

    My RideRunner Plugins
    RRMedia
    RRExtended
    DFXVoice

    "There are no bugs - only undocumented features."

Page 1 of 2 12 LastLast

Similar Threads

  1. Laptop w/dead battery
    By goldiemike in forum Newbie
    Replies: 1
    Last Post: 08-30-2007, 05:32 AM
  2. Replies: 13
    Last Post: 07-30-2006, 06:09 PM
  3. Replies: 6
    Last Post: 01-11-2006, 07:18 PM
  4. MPJA - MECI ASTEC DC-DC Converter
    By Luc in forum General Hardware Discussion
    Replies: 39
    Last Post: 11-22-2004, 09:31 PM
  5. Laptop won't run on battery
    By MoFo in forum General Hardware Discussion
    Replies: 22
    Last Post: 08-01-2004, 11:34 PM

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
  •