General :: Lighting LEDS Using Parallel Ports?
Oct 1, 2010
I would like to add a driver to /dev which can light the LEDS using the parallel port. Where I should start from. I am trying to learn device driver programming, which is quite difficult for me now.
View 8 Replies
ADVERTISEMENT
Dec 11, 2010
I am trying to write to the parallel port pins from a Perl program running Ubuntu Linux, to light up led's on a bread board. I've already accomplished this on this same box using a C program, but I cannot get my code below to work. I believe the problem is with the line:
$parport = Device::ParallelPort->new('auto:0');
I've tried different variables between the ('') ticks, but nothing has worked. I use Perl on my web pages for forms, but this has stumped me.
Code is below:
#!/usr/bin/perl require "subparseform.lib"; &Parse_Form; print "Set-cookie:
cart_id=1234; user_id=123;
"; print "Content-type: text/html
"; use strict; use CGI; use Device::ParallelPort;
# use Device::ParallelPort::drv; # use Device::ParallelPort::drv::linux # use Device::ParallelPort::drv::parport
# Set up your parallel port object and tell it what driver to use.
#my $parport = Device::ParallelPort->new('auto:0'); print "It works!!!";
View 1 Replies
View Related
Oct 15, 2010
Never done it before, don't know how but its due next week. I am a computer systems student and have been required to built a hardware that will be operated by a program in G++ through the parallel ports. The hardware, thats a piece of cake, the software, now that's were the real problem is. I don't even know were to start.
View 2 Replies
View Related
Mar 13, 2011
After a fresh install of suse 11.4, Yast cannot configure my local printer (Epson Epl-5700) because there is no parallel port available. How can I make parallel ports work?
View 5 Replies
View Related
Apr 1, 2011
I've upgraded from 10.10 to 11.04 and now the backlighting is completely gone. I actually am forced to shine a very bright flashlight on the screen just to write this. I've gotten xubuntu to install with 11.04 fine but I don't really like it and I've noticed that weather I use a USB, DVD, or upgrade I have no backlighting with regular ubuntu. Oh and it also puzzles me because I upgraded to the alpha 2 a few weeks ago and everything was fine but now the beta 1 is giving me problems.. I really don't want to reinstall and lose all of my stuff!
View 4 Replies
View Related
Apr 18, 2010
have no way of knowing if I am connected to my wireless network. The straw that broke the Camel's back was last night when for one reason or another, the connection was dropped, and I had no way of knowing it. I messed around for 3 1/2 hours changing software settings, and running in circles. I finally decided to just reboot the system, and the connection came back.I still had no way of knowing that.
Had the LEDs on my notebook adapter been working, I could have saved myself hours of frustration and aggravation.I am still so ticked off over that, I'm to the point that if this can not be corrected, this may very well be the end of my using Linux.I assume this problem will arise from the adapter card. I took screen shots of everything.Note all of the blank spaces that when clicked on, display LEDs, and nothing more, (led1.jpg)I have taken a screen shot of the properties of each of those entries, (led_properties.jpg).how do I get the LEDs on my adapter working so I know when there is a connection, and when data is being transmitted and received?
View 12 Replies
View Related
Mar 23, 2011
I don't know why, but the Lighting extension for Thunderbird has been a complete PINA. The package manager version didn't work (Tbird claimed it was incompatible), and I had to get a working plugin from some obscure section of some obscure unofficial site in order to get a version that was compatible with my Thunderbird. I don't remember where I got it or why the official version doesn't work, but somehow I got it working.
I recently updated my system (including tbird) using apt-get update, and the lighting extension is no longer compatible (again). The "find update" option in Tbird finds one, but it isn't compatible either. Where do I go to get a Tbird plug-in that actually works?
I'm using Tbird 3.1.8 on 64 Bit 10.04.
View 3 Replies
View Related
May 28, 2010
Just thought I'd give you guys a heads up incase you wern't aware, someone over on the ubuntu forums wrote a program in java that changes the lights on your alienware laptop. It may work with the desktop's as well.
I'll just post a link to my build script and you can follow it from there: [url]
Also, if you build HAL against libsmbios (from Dell) You'll get some bonus keys working as well, such as the eject key.
I love this new alienware M15X... It's a freaking beast of a laptop with 2 quad i7core procs....
View 1 Replies
View Related
Oct 23, 2010
At first I thought the card was broken, but it connects to networks fine. I know its kind of minor, but is there a way to enable the little traffic indicator lights on the card?
View 1 Replies
View Related
Aug 8, 2014
My keyboard status lights (Caps Lock, Num Lock, Scroll Lock) are non-functioning when in an X environment. The lights turn on and off as would be expected at the terminal.
xset can turn on the scroll lock, but but not the Caps or Num Lock.
numlockx can toggle the Num Lock light.
The functions of the keys on the keyboards works normally, it's just the lights don't update accordingly.
I have already run dpkg -reconfigure keyboard-configuration to no avail. and this is the information that /etc/default/keyboard has about my keyboard
Code: Select all$ grep -vE "^#|^$" /etc/default/keyboard
XKBMODEL="pc105"
XKBLAYOUT="us"
XKBVARIANT=""
XKBOPTIONS=""
BACKSPACE="guess"
The keyboard itself is a Corsair K70, if that matters.
View 0 Replies
View Related
Oct 18, 2010
Today I installed Maverick on my new MBP. I followed the instruction in this Help page:Maverick but seem to be having trouble getting the keyboard backlight hotkeys to work (LCD Brightness, Media keys, and Sound keys appear to work correctly).
View 3 Replies
View Related
Oct 29, 2010
I've encountered a very strange bug in Rhythmbox 0.12.8 on my Ubuntu 10.04 install. For some reason, anytime I have Rhythmbox running, all 3 LEDs on my Nostromo n52 gaming device blink, slightly faster than 1 blink per second (or a little over 60 Hz).The blinking does interfere with use of the n52. While the blinking occurs, only about half of my n52 keypresses get through.I guess Rhythmbox is sending signals via USB somehow. Anyone else noticed this bug?
View 1 Replies
View Related
Mar 17, 2010
I have a shell script to refresh some databases. Currently I open 5 sessions and to execute the five scripts.
Today, as test, I tried to see if I could run two refreshes simultaneously from one session using the '&':
. /refresh.ksh db1 &
. /refresh.ksh db2
The first one ran and the second one started only after the first one was finished. Could it be that the script refresh.ksh contains many commands and those are not pushed to the background? If so, what's the best approach to getting 5 db's refresh simultanously from on session?
View 6 Replies
View Related
Jul 28, 2011
While converting some images using ImageMagick, I noticed a somewhat strange effect. Using xargs was significantly slower than a standard for loop. Since xargs limited to a single process should act like a for loop, I tested that, and found it to be about the same.
Thus, we have this demonstration.
Quad core (AMD Athalon X4, 2.6GHz)
Working entirely on a tempfs (16g ram total; no swap)
No other major loads
[Code]....
View 1 Replies
View Related
Sep 1, 2010
I do not know much about parallel computing, but I do have access to a few cpus.I am trying to write a program compatible for multiple cpus, but to do it, I need to ensure unique directories. I have figured out that the time of creation, process id, and cpu id form a unique combination I can use to name files (up to the degree of accuracy of the internal timer).Anyway, I am using perl. I know how to find the process id and I know I can get the time pretty easily, but as I said, I do not know much about hardware or parallel computing. All I need is a way to identify each cpu in the system and I am set for half of my program (the other half is significantly more straightforward and is mainly about text parsing.)
So anyway using terminal, perl, etc., I could access this identification? Or could someone at least tell me the name of what I am looking for? I have seen the words "ip" "MAC" "hostid" and a bunch of other "id" things come up in my googling, but I really cannot figure out which is the one relevent to me
View 6 Replies
View Related
Mar 25, 2010
I've got a fresh install of ubuntu 9.10 on a fresh disk and everything was going perfectly. I bought a Usb=>parallel cable to connect my old parallel port printer.When I try and print, sometimes it works and sometimes it doesn't. Sometimes the job will go to the print queue and then nothing happens, in this case if I unplug and replug the usb cable a couple of times it usually prints the document. Sometimes the job doesn't show up in the print queue at all and sometimes it prints the document with no problems.
Whenever I use lsusb, I never see the printer in the list of attached usb devices (even when the printer is printing!). Apart from root hubs, the only two devices ever listed with lsusb are my mouse and scanner.
View 2 Replies
View Related
Dec 13, 2010
I was trying out the parallel port communication on RHEL 6 but found it not working:
#echo hello > /dev/parport0
write error :Invalid argument".
#ll > "/dev/lp0"
/dev/lp0:No such device or address
View 2 Replies
View Related
Apr 22, 2010
I have been trying out serial and parallel data communication on Fedora 13 Beta. I can easily see the list of serial ports through:
Code:
setserial -g /dev/ttyS[0-3]
And can also write some data through:
Code:
ll > /dev/ttyS0
But I am unable to see parallel ports
I can see something like:
Code:
/dev/parport0
But when I try out:
ll > /dev/parport0
It throws error.
View 3 Replies
View Related
Dec 17, 2010
I'm writting an app for desktop and embedded linux and I need to get information about the multiserial port, and I need to know which port is been used (by a printer, por example).The multiserial I'm using is an Altera Corporation Device 0004, and I just need to tell how many ports are there and how many is been used.
View 3 Replies
View Related
Mar 17, 2011
Notion of robbed task multiprogramming. I'm looking for information on this concept to better understand its application in parallel
View 1 Replies
View Related
Aug 11, 2010
How can I tell if my USB ports are 2.0 ports?
View 1 Replies
View Related
May 14, 2010
My Operating system is Ubuntu 10-4 that I have just installed.
View 6 Replies
View Related
Jun 13, 2011
OS : Oracle Enter Prise Linux 6 (equivalent to RedHat)
I am in process to install oracle 10g on said OS.My process fails and after digging up , I came to know that some of the oracle libraries are compiled on 32-bit architecture and it require glibc-32 bit . also it require for gcc-32 bit.
Now i have downloaded all the required rpm for gcc-32bit . when I try to install glibc and its dependencies , it gives me error that newer version already exist.
How can I install , Gcc-32bit(libgc, libstd-i386 etc) in parallel or standalone?
View 3 Replies
View Related
Nov 17, 2010
I'm working on a Linux (fedora) based arcade dance machine using a game called Stepmania. I've got it all up and running and i'm trying to get it to work with two dance pads.
It detects the dance pads fine and they work well, the only issue is that when the machine is turned on it seems to randomly pick which pad is /dev/input/js0 and which is /dev/input/js1
What this leads to is the pad on the left controlling the character on the right & vice-versa. So I was wondering if there is any way to tie or map the joystick to a particular USB port so they always stay where they should ? Or is there another way this could be accomplished ?
View 1 Replies
View Related
Jan 20, 2011
I want to configure following serivices on non-standard (or not well-known)port uisng RED-HAT LINUX INETD: TELNET, SSH, SNMP, FTP
1) Is there any issue/limitation doing this?
2) Any caveat or peculiarities related to any of the services?
View 2 Replies
View Related
Sep 23, 2010
When trying to run a program, from Gnome terminal, for a device connected to /dev/ttyS0 (COM1), I get a segmentation fault. I think the terminal may not want to leave the connection open for some reason. Do I first need to mount the device somehow?
View 2 Replies
View Related
Apr 10, 2011
I am new to Linux. I am installing oracle OBIEE 11g on Linux Red Hat 5.6 64 bits and I got stuck at ports not open error.
I tried adding the following line in the iptables file:
Then Restart iptables service, But did not have any success still getting the same error.
How do I open ports on my server.
View 3 Replies
View Related
May 17, 2011
How to separate sftp and ssh and run on different ports.
i.e.
a) sftp on port x
b) ssh on port 22
I searched from the web and there are no detailed instructions. They suggested something like separating sshd_config into two files (file A and file B) and run two instances. Each instance points to its configuration file.
However, they didnt write down the detailed procedure of:
a) how to modify file A and file B (i.e. which line should insert specific commands)?
b) how to run two instances?
c) how to point each instance to its config file.
I am using Linux CentOS and the latest open-ssh.
View 4 Replies
View Related
Dec 2, 2010
I cant get any of my usb ports to open ,m trying to open my "usb external hard drive .
View 2 Replies
View Related
Mar 9, 2011
I want to know what is a source port and what is a destination port.
View 7 Replies
View Related