Welcome to the new GBM Forums. Please note that previously registered members will need to reset your password if this is your first time visiting the new forum. Thank you

+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 10 of 19

Thread: any way to quickly enable/disable SD slot?

  1. #1
    Guest

    I recently bought an SD card to use with my laptop. I'd like to be able
    to leave the SD card in the slot at all times (otherwise I'd lose it),
    but it would be an unnecessary drain on the battery. Is it possible to
    quickly enable/disable the slot reader? Going through the clicks to get
    to the device manager is a lil annoying.



    Thanks







  2. #2
    Mobile Maven
    Join Date
    Dec 2006
    Posts
    336

    I could try to script it if you're interested.


    Lenovo X60 Tablet
    Vista/OSX/Ubuntu
    App:
    Rollup
    Mo\'Scroll

  3. #3
    Mobile Mentor
    Join Date
    Dec 2006
    Posts
    62

    admittedly i'd love somethin like that as well.
    http://img.photobucket.com/albums/v4...sSignature.jpg
    6363ADU(sxga+) Ordered 12/9: ESD 1/22->2/5->2/26->Shipped 2/7
    ->Received 2/9

  4. #4
    Mobile Maven
    Join Date
    Dec 2006
    Posts
    336

    Alrighty then, a challenge it is.

    {= )

    Lenovo X60 Tablet
    Vista/OSX/Ubuntu
    App:
    Rollup
    Mo\'Scroll

  5. #5
    Mobile Mentor
    Join Date
    Dec 2006
    Location
    United States
    Posts
    115

    Definitely looking forward to seeing how this turns out. I'd be interested in that script as well...

    -Michael

  6. #6
    Mobile Maven
    Join Date
    Dec 2006
    Posts
    336

    Ok I got the script working. It's going to be using the devcon.exe utility.

    I'll post a link to it shortly, i'm trying to post it on my code blog.

    stay tuned.


    Lenovo X60 Tablet
    Vista/OSX/Ubuntu
    App:
    Rollup
    Mo\'Scroll

  7. #7
    Mobile Maven
    Join Date
    Dec 2006
    Posts
    336



    Ok it's up. You can check it out here:

    http://codescribes.blogspot.com/

    if you have any comments/suggestions you can post them in this thread or in the comments on my blog.

    Please let me know how this works for you, i have only tested it on Windows Vista on my Lenovo.

    **UPDATE: I just noticed that if you run the script on a PC that does not have an SD card reader, it will bomb. I'm trying to add in a better error handle for that.


    Edited by: blademonkey
    Lenovo X60 Tablet
    Vista/OSX/Ubuntu
    App:
    Rollup
    Mo\'Scroll

  8. #8
    Guest

    This was extremely kind of you to do this, blademonkey. I'm running
    winxp tablet edition and wouldnt run under the older os. The exe pops
    up an AutoIt Error which reads:



    Line 0 (file blah blah location):


    If StringInStr($aStatus[2],"running")==1 Then

    if StringInStr(^ERROR


    Error: Array variable has incorrect number of subscripts or subscript dimension range exceeded.</font>

    The exe does in fact install devcon file, but the devcon doesnt appear to do anything. Anyhow I actually will be upgrading to Vista as soon as the semester is over so it's no big deal if you can't get this working for xp, but it sure would be sweet. A big thanks again for offering to do this for us.

    -Danny
    </font></font>



  9. #9
    Mobile Maven
    Join Date
    Dec 2006
    Posts
    336


    Danny,

    is your SD Card Reader internal or external? I'm asking because the script is taylored to look for the SDHost Class on your PC.

    Can you run this from a cmd prompt and let me know what output you get:
    c:\temp\devcon status =sdhost

    Thanks


    Edited by: blademonkey
    Lenovo X60 Tablet
    Vista/OSX/Ubuntu
    App:
    Rollup
    Mo\'Scroll

  10. #10
    Guest

    The reader is internal on my laptop. I'm not sure if I did the cmd prompt correct, but it says no matching devices found.

    (How I entered the prompt: start>run>'cmd' ... then the line looks like this: documents and settings\adminstrator>c:\temp\devcon status =sdhost)


+ Reply to Thread
Page 1 of 2
1 2 LastLast

Posting Permissions

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