Page 1 of 3 123 LastLast
Results 1 to 10 of 29

Thread: Make XP think it's running on batteries?

  1. #1
    Newbie
    Join Date
    Nov 2009
    Posts
    3

    Make XP think it's running on batteries?

    Hi Folks,

    Been a lurker for a while, this being my first post, be gentle :|


    I've had my carputer in for a while now and mostly happy with it. I use a M3-ATX PSU and while it works well, I have a nagging tweak I want to make...

    I want to make XP think it is running off a battery and detect when the "ac" is connected and battery state etc.

    The above is obviously (maybe not?) to do with ACPI but how do I actually interface with it? I have thought about using the the UPS service but that is pretty limited in the sense that it only tells windows that "I am on battery", "I am on mains" etc. No details battery level etc. Not exactly what I want.
    I would _like_ xp / my carputer to think it is a laptop.

    I am a dab hand at electronics / arduino etc etc so don't mind delving into the bits. Has anyone done anything like this?

    I know it offers little benefit overall, just something I have been pondering...

    TIA

    Cheers,
    Crispin

  2. #2
    Neither darque nor pervert DarquePervert's Avatar
    Join Date
    Apr 2004
    Location
    Elsewhere
    Posts
    13,949
    If you use an M3, then you're using desktop hardware.
    Desktop hardware doesn't have the means of utilizing battery power.

    With your hardware, this isn't going to happen.
    Have you looked in the FAQ yet?
    How about the Wiki?



    Under normal circumstances, a signature would go here.

  3. #3
    Low Bitrate
    Join Date
    Feb 2009
    Posts
    67
    actually this is very good idea though. also you can check your car battery level by using windows(you know that little battery icon in taskbar).
    may be someone expert in electronic can design a board that connects into the serial port or whatever and simulate the battery thing....
    There is nothing impossible in the world :-)

  4. #4
    Neither darque nor pervert DarquePervert's Avatar
    Join Date
    Apr 2004
    Location
    Elsewhere
    Posts
    13,949
    If the hardware doesn't support battery usage in ACPI, it's simply not going to happen.

    Desktop hardware isn't designed to accommodate battery power, plain and simple.
    Have you looked in the FAQ yet?
    How about the Wiki?



    Under normal circumstances, a signature would go here.

  5. #5
    North of the land of Hey Huns
    Auto Apps:loading...

    Join Date
    Jun 2004
    Location
    Westminster, MD
    Posts
    2,144
    Quote Originally Posted by DarquePervert View Post
    If the hardware doesn't support battery usage in ACPI, it's simply not going to happen.
    Sorry, but you're wrong . It would be possible to write a "fake" battery driver using the DDK, now known as the WDK, and load it at runtime. This would make the OS think there is a battery installed, and then query the driver for information relating to the battery. I believe it would also be possible to do things like make the OS think the battery is dead or at any level you want. If I ever get around to setting windows up in a VM I'll give it a shot... but don't hold your breath
    "stop with the REINSTALLS, what do you think we got some lame-o installer!!!" - mitchjs
    RevFE
    My Shop

  6. #6
    FLAC
    Join Date
    Jun 2006
    Location
    Calgary, Alberta
    Posts
    1,237
    Blog Entries
    1
    I think an interesting idea would be that if the voltage exceeds a certain threshold (eg. when the engine is on), then it could trigger the computer into thinking it is running on AC. Then when you shut off the engine and the system is running on battery, then have the computer monitor the voltage to provide a rough estimate on state of charge. Sounds similar to what UPSes do.

    One potential idea to throw in there which does not require any software modification would be to get a UPS with USB connectivity. Most APC UPSes with USB connectivity will be recognized by XP without having to install anything. But you would have to modify the hardware of the UPS somehow to trick it. Maybe remove the internal UPS battery, then hook the leads up to your electrical system. Then you would be able to monitor the voltage and approximate % left in battery. Then a rough way to trigger whether the system is on AC (engine on) or battery would be to wire an inverter that only turns on when the engine is on and hook up the AC output from the inverter to the AC input on the UPS. To prevent the UPS from charging the electrical system, you would need a diode on the UPS battery leads.

  7. #7
    Newbie
    Join Date
    Nov 2009
    Posts
    3
    I know I am using desktop hardware and I know it will not support "just plugging in a battery". But as for the other ideas, that is what I was thinking along - is there a way to fool MS into thinking it is actually running on batteries.

    One thing I am busy with is to use an Arduino to send me various bits of information from various sensors. Accelerometer and inclinometer being two of them. I'll get it to send battery information as well. Like you said, anything over 13v means the car is running, anything less it's not. Anything below 12 is a low battery condition.

    Still, it would be nice to make ms think this ;(

  8. #8
    FLAC
    Join Date
    Dec 2008
    Posts
    1,322
    whats the purpose? all youre basically trying to do is simulate in software what your power supply already does in hardware?

  9. #9
    Newbie
    Join Date
    Nov 2009
    Posts
    3
    Quote Originally Posted by trader007 View Post
    whats the purpose?
    Just 'cause

  10. #10
    Raw Wave
    Auto Apps:loading...
    justchat_1's Avatar
    Join Date
    Jul 2008
    Location
    Boston, Ma or NY,NY
    Posts
    2,359
    Quote Originally Posted by malcom2073 View Post
    Sorry, but you're wrong . It would be possible to write a "fake" battery driver using the DDK, now known as the WDK, and load it at runtime. This would make the OS think there is a battery installed, and then query the driver for information relating to the battery. I believe it would also be possible to do things like make the OS think the battery is dead or at any level you want.
    Exactly!!

    I looked into this awhile ago and I think the problem I had was that windows only can use one ACPI HAL at a time....so you would need to create a replacement for the one currently used with your BIOS.

    Quote Originally Posted by Crispin View Post
    Just 'cause
    Are you planning on using a front end over the OS? The better option may be to use a plugin for a front end that lets you simulate battery levels.

Page 1 of 3 123 LastLast

Similar Threads

  1. nGhost 2.0.2 on Ubuntu 9.0.4 - 'make' issue
    By ThePistonDoctor in forum LinuxICE
    Replies: 23
    Last Post: 07-23-2010, 07:30 PM
  2. Make Calls with BlackBerry through Win XP?
    By shooptek in forum Wireless Communications
    Replies: 2
    Last Post: 06-22-2009, 07:34 PM
  3. How To: Make Windows XP More Touchscreen Friendly
    By Maheriano in forum Operating System Optimization
    Replies: 1
    Last Post: 05-05-2009, 11:49 PM
  4. Another crazy mod: RAM booting XP (no, not EWF)
    By SFiorito in forum WinNT Based
    Replies: 11
    Last Post: 01-18-2007, 07:39 PM
  5. article on how to make XP boot up faster
    By blaster in forum Software & Software Development
    Replies: 2
    Last Post: 03-02-2005, 07:26 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
  •