Results 1 to 6 of 6

Thread: USB - LED On & Off programming

  1. #1
    Join Date
    Apr 2011
    Location
    Slovenia
    Beans
    83
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Post USB - LED On & Off programming


    • LED
    • USB cable
    • COMPUTER (with Ubuntu 12.04)

    How to make the LED light on & off with the help of programming?
    Attached Images Attached Images
    Last edited by snowz; July 21st, 2012 at 11:27 PM.

  2. #2
    Join Date
    Aug 2011
    Location
    47°9′S 126°43W
    Beans
    2,172
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: USB - LED On & Off programming

    This would mean to be able to power off/on the USB port. AFAIK There is no provision for this. However, on some laptops you can control the various lights, on my Thinkpad it's easy to control by software the LED at the top of the screen (it's meant to light the keyboard) as well as various indicator lights.
    Code:
    # blink the keyboard light, must be run as root
    for i in $(seq 1 20); do sleep .2; echo on >/proc/acpi/ibm/light; sleep .2 ;echo off  >/proc/acpi/ibm/light;done

  3. #3
    Join Date
    Nov 2005
    Location
    Sendai, Japan
    Beans
    11,296
    Distro
    Kubuntu

    Re: USB - LED On & Off programming

    I'm not an expert on USB, but I don't think this is possible with just a LED. USB is complicated, so you might need a controller and whatnot. It would be simpler with a serial or parallel port (but you will still need to throw in a reisistor to avoid frying your port and/or LED).
    「明後日の夕方には帰ってるからね。」


  4. #4
    Join Date
    Apr 2011
    Location
    Slovenia
    Beans
    83
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: USB - LED On & Off programming

    Sounds a bit complicated

  5. #5
    Join Date
    Feb 2009
    Beans
    1,469

    Re: USB - LED On & Off programming

    Quote Originally Posted by snowz View Post
    Sounds a bit complicated
    A bit. Do it anyway. You'll learn a lot.

  6. #6
    Join Date
    Apr 2011
    Location
    Slovenia
    Beans
    83
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Post Re: USB - LED On & Off programming

    I realise that yeah, it must be an awesome experience to make this work properly. And later on, when understanding how it works and how its done, make a sequence of on's & off's so the led blinks. That must be great to accomplish

Tags for this Thread

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
  •