Question for the PC guru's


Closed Thread
Results 1 to 25 of 25
  1. #1
    Join Date
    Jul 2003
    Posts
    2,405

    Default Question for the PC guru's

    Is there a single pin/signal on a PC PCI bus I can toggle high or low to suspend PC operation without causing a re-boot?

    We have a small relay card that waits to receive an IR code from someone wearing an IR badge. Once this code is received, the relays engage and connect the video, USB ports, PS2 for keyboard/mouse, etc.

    This works great. If you don't have the IR badge, you can't use the PC. However, if I can control a pin on the PCI bus that suspends the CPU, I could really simplify the circuit.

    Is this do-able?


    Regards,

    -Bruce
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  2. #2
    Join Date
    Sep 2007
    Location
    USA, CA
    Posts
    271


    Did you find this post helpful? Yes | No

    Default

    I don't know about your specific hardware question, but why not use the badge as a password alternative, and have them log out when done. My laptop has a fingerprint reader... I'm sure you could replace the function with a badge reader.

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Because if they walk away without logging out, anyone can walk up and use it.

    _
    DT

  4. #4
    Join Date
    Sep 2007
    Location
    USA, CA
    Posts
    271


    Did you find this post helpful? Yes | No

    Default

    Yes, that is an issue. You can set the screen saver at 1 min., but that is still enough time depending on the security needed.

    There are programs that allow a one-key entry to the screen saver. Perhaps you could implement that when the badge is removed.

  5. #5
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    I think this is for a busy environment, with busy/distracted people using the computer.

    It has to "not work" when they walk away.

    Bruce,

    Stopping the cpu in midstream doesn't sound like a very good idea.
    Especially with Windows.

    Could be writing to disk or whatever at the time.

    Just a thought ... You could simulate pressing the sleep button on a keyboard, to let the system enter stand-by when it doesn't see a badge. Then limit Mouse/Keyboard activity until it sees a badge again.

    But that sounds difficult.

    _
    DT

  6. #6
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,611


    Did you find this post helpful? Yes | No

    Default

    Hi, Bruce

    Why not simply "cut" the video signal at the input of the monitor ...

    my monitor enters sleep mode when not receiving signals ...


    did you ever try to work on a monitorless PC ...

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  7. #7
    Join Date
    Oct 2004
    Location
    Italy
    Posts
    695


    Did you find this post helpful? Yes | No

    Default

    Hi Bruce,

    Go to the Control Panel and select "Power options" "Advanced TAB".


    (Click to enlarge the picture)

    See also the hibernate TAB in "Power options".
    Search in the Windows XP help file "hibernate".

    Understanding Differences Between Hibernate and Stand By:
    http://www.timeatlas.com/mos/Term_to..._and_Stand_By/

    * * *

    Note that in the BIOS there is also an option to change the function
    of the power button. (On/Off or Suspend).

    Regardless of the selected function of the power button, if the power
    switch (button) is pressed for more than four seconds, the computer is
    powered off. (Same as when you unplug the AC power cable).

    Best regards,

    Luciano

    * * *

    EDIT

    The idea is to control the PC only with the power switch.
    The PC will be powered on or waked up with the same power switch.
    Your IR badge relay will be connected in parallel to power switch.
    (The power switch is the push button on the front of the PC).

    Before you can do that you will have to unselect the check boxes
    that let you wake up the PC with the keyboard and the mouse.


    (Click to enlarge the picture)


    (Click to enlarge the picture)
    Last edited by Luciano; - 28th January 2008 at 11:56.

  8. #8
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Thanks for all the replies.

    Alain;

    We're already breaking video, PS2, and USB connections. It works great as-is, but I would like to simplify the hardware.

    Luciano;

    This one looks interesting. Thanks. The only problem I see with this approach is that a user could re-enable mouse/keyboard wakeup options once logged in. If there were some way to disable all input peripherals by controlling a bus signal, that would be perfect

    Darrel;

    Good points. Thanks. I'll look into what happens in suspend/hibernate. I wonder if networked PC's will drop-off the network in suspended or hibernate?
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  9. #9
    Join Date
    Oct 2004
    Location
    Italy
    Posts
    695


    Did you find this post helpful? Yes | No

    Default

    The only problem I see with this approach is that a user could re-enable mouse/keyboard wakeup
    options once logged in. If there were some way to disable all input peripherals by
    controlling a bus signal, that would be perfect.
    Are the users administrators???

  10. #10
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Bruce View Post
    Good points. Thanks. I'll look into what happens in suspend/hibernate. I wonder if networked PC's will drop-off the network in suspended or hibernate?
    I've got a setting in my BIOS called 'WAKE ON LAN'. But, I'm not sure if that means 'WAKE up anytime you hear anything come across the RJ45 jack' or maybe 'WAKE whenever you see a packet with my MAC address come across', or what. Never tried it.
    But I can tell you that my both of my laptop's, and 2 PC's (plus a Wii and 2 Axim's) maintain the same local IP on my local wireless using DHCP before and after using hibernate (memory dump to hard drive, system shut off) and/or standby (system shut off, but memory kept refreshed). But if I do a complete shutdown, yes, when they come back up, the IP is sometimes different than it was before.

    I was thinking about the first post. You've got IR badges? I take it that they shoot out an IR signal at regular intervals? How about receiving that IR signal with a separate PIC and using that IR signal as a sort of 'CLEARWDT' in a program. The PIC doesn't get the IR signal and, if there is 5v on one of the hard drive power connectors, it kicks a relay which connects the power button, PC shuts down. Later, the IR signal returns, PIC sees it, check the 5v line on the power connector, kick the relay, PC powers up. Maybe 15 seconds before it shuts the PC down, it fires off a small beeper to warn that it's about to shut down the PC, in case the user is turned around talking to somebody or something like that.

  11. #11
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Not every user will have admin rights,, so on a system with admin options it would work fine, but not on older operating systems like ME, 98, etc.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  12. #12
    Join Date
    Oct 2004
    Location
    Italy
    Posts
    695


    Did you find this post helpful? Yes | No

    Default

    @skimask

    If you enable 'WAKE ON LAN' the users on the network will be able to wake up other PCs.

    Example of command line freeware:
    http://www.matcode.com/wol.htm

    Best regards,

    Luciano

  13. #13
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    You've got IR badges?
    Yes.
    I take it that they shoot out an IR signal at regular intervals?
    Yes. The IR badge system works perfectly already. What I'm looking for is some way to
    eliminate several mechanical relays. If we can interface to the PC bus via a PCI or ISA
    card slot, and disconnect/disable input hardware, we can drop most of the relays.

    Physically switching input devices & video works fine, but if there's an easier way, which
    requires < hardware, I'm all ears...;o}
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  14. #14
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Bruce View Post
    Yes. The IR badge system works perfectly already. What I'm looking for is some way to eliminate several mechanical relays. If we can interface to the PC bus via a PCI or ISA card slot, and disconnect/disable input hardware, we can drop most of the relays.
    There has to be a way to send the 'Sleep' and 'Wakeup' keyboard commands over the USB port, if in fact the keyboards are USB. Heck, even PS/2 should work.

  15. #15
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    This device is invisible to the operating system. There is no communications between it and the PC.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  16. #16
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Bruce View Post
    This device is invisible to the operating system. There is no communications between it and the PC.
    And I guess no software intervention is desired nor is planned then.

    I was thinking; a small program works in background listening to an interrupt on PCI bus; and when it happens, the software disables the selected peripherals. As far as I know, there are 256 interrupt options. I might be wrong.

    Wouldn't this be an easier way?

    I am no PC guru BTW.
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

  17. #17
    Join Date
    Oct 2004
    Location
    Italy
    Posts
    695


    Did you find this post helpful? Yes | No

    Default

    Resume from hibernate will always require the use of the power button.
    (The mouse or the keyboard will not wake the PC from hibernation).

  18. #18
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    There are no communications pipes or connections between this hardware device & the PC, so there is no way for any software running on the PC to interact with it
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  19. #19
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Resume from hibernate will always require the use of the power button.
    (The mouse or the keyboard will not wake the PC from hibernation).
    I wish that were true. I setup my Windows ME machine to enter hibernate on a quick press of the power button.

    It works perfectly, but it will wake from hibernate on mouse movement or a key-press...;o}

    ME does not provide options to disable wakeup via mouse or keyboard.
    Last edited by Bruce; - 28th January 2008 at 18:20.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  20. #20
    Join Date
    Oct 2004
    Location
    Italy
    Posts
    695


    Did you find this post helpful? Yes | No

    Default

    The PC is probably not going to hibernation. The PC is powerd off when it goes to hibernation.

    The hibernate feature saves everything in memory on disk, turns off your monitor and hard disk,
    and then turns off the computer.

    When you resume from hibernation the BIOS performs the typical Power On Self Test (POST),
    and then reads the hibernation file, Hiberfil.sys, to restore the state of the computer.
    Everything that was running when you put the computer in hibernation is restored.

  21. #21
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    It definitely appears to be entering hibernate mode. Under Power Options Properties, Advanced, I have Hibernate selected when I press the power button.

    I press the power button momentarily, and it does appear to enter hibernate mode. It takes a good while for it to wakeup.. But mouse movement, a key-press on the keyboard, or pressing the power button again will wake it up. Windows ME does not give the option to disable wakeup via mouse or keyboard activity.

    It saves everything I had going prior to hibernate, just as explained on the link you posted, and it for sure does take longer with hibernate selected VS Stand By mode when it wakes up. Am i missing something?
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  22. #22
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    If I remember right, when my PC's go into Hibernate (either by the option in one of the logoff menus or the power button if it's configured that way), I get a Progress bar on the screen both when it goes into and when it comes out of Hibernate. Keyboard, Mouse, doesn't power the system up, only the power button.

    For standby, it goes straight to the logoff screen (but doesn't really logoff), stays for a couple of seconds, then shuts down. On power up (either by the keyboard, mouse, or power button if so configured), the screen just pops up the same as when I hit Standby.

    Do you get the Progress bar along the bottom of the screen on Power up after the post?

  23. #23
    Join Date
    Oct 2004
    Location
    Italy
    Posts
    695


    Did you find this post helpful? Yes | No

    Default

    Hi Bruce,

    At the end of the "hibernation" process, the PC is powered off and you can unplug
    the AC power cable of your desktop computer or remove the battery/power supply
    in case you are using a notebook.

    In the help file of Windows 98SE you can read:

    You cannot put your computer in hibernation if you have a FAT32 drive.

    * * *

    Do you see the BIOS perform the typical power on self test when you resume
    from hibernation?

    Best regards,

    Luciano

  24. #24
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Ok here's what I've found. On a system that doesn't have sufficient hard drive space to stash the hibernate file, you're essentially screwed.

    It will "appear" to enter hibernate mode, and auto-restart once it figures out there's not enough room to stash everything on your hard drive in this nifty hibernate file. Trial & error here.

    I was moving the mouse or pressing a key on the keyboard long before it figured this out, so it "appeared" the system was re-starting due to my moving the mouse or pressing a key.

    It just took a very long time for Windows to figure out there wasn't enough hard drive space to store this huge hibernate file.

    Switched to an XP system, with a boat-load of hard drive space available, and bingo. It does indeed give me the progress bar thing when entering hibernate, and it won't resume without a press on the power button.

    With stand by selected, it resumes as advertised with a mouse or key-press, but only if these are enabled in device manager.

    This is great BUT, it's totally worthless if there's not enough space on a hard drive to store the silly (and incredibly HUGE) hibernate file before hibernate shutdown, so this option is essentially worthless for the application. We really have no idea if a PC this will be installed on has the resources for hibernate to work. It would be awesome if it wasn't limited to hard drive space available.

    Huge bummer. It looked so easy.

    Edit: Yes. It does go through the bios screen when restarting from hibernate. Then it resumes with everything on-screen just like it was before entering hibernate.
    Last edited by Bruce; - 28th January 2008 at 21:00.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  25. #25
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Bruce View Post
    it's totally worthless if there's not enough space on a hard drive to store the silly (and incredibly HUGE) hibernate file
    hibernat.sys should only be just a tad bigger than total memory installed (1GB mem = about 1.1GB hard drive space used).
    Yes, it's huge, but it's also generally placed at the 'front' of the drive, behind the paging file, for quick access.
    So, yes, if you're short on drive space, and don't have a lot of memory (and/or slow drives, etc), it'll begin to look pretty ugly pretty quick.

Similar Threads

  1. LCD / PC question
    By luminas in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 25th August 2008, 10:53
  2. Sending menu to PC from PIC16F876A
    By joseph Degorio in forum Serial
    Replies: 2
    Last Post: - 12th November 2007, 08:03
  3. PC Keyboard question
    By HatchetHand in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 18th September 2007, 07:03
  4. 18F458 to PC communication Help
    By shawn in forum Serial
    Replies: 4
    Last Post: - 11th February 2007, 20:24
  5. Interrupt and Serial communication to PC.
    By obaskirt in forum mel PIC BASIC
    Replies: 2
    Last Post: - 17th June 2005, 21:01

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

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