The tag has no wiki summary.

learn more… | top users | synonyms (1)

1
vote
0answers
27 views

Execute command when mouse is pluged/unpluged on GNU/Linux

Is it possible to have something like event handler for plugging unpluggig a mouse in Unix System? I want to have a script that will enable/disable touchpad but not only on startup (you can find ...
6
votes
1answer
401 views

USB connect/disconnect notification

I use Linux Mint 13 MATE, and I'm trying to set up notifications when I plug/unplug devices. First of all, I found udev-notify package, but unfortunately it almost doesn't work for me: it works for ...
2
votes
1answer
310 views

Map physical USB device path to the Bus/Device number returned by lsusb

I need to get the title of the attached USB device. I can do that with lsusb. udev allows some substitutions when I write rules: say, we can use $kernel to get name of the device, or $devpath to get ...
1
vote
0answers
203 views

Fedora unable to detect USB or wireless networks? [closed]

I installed Fedora(Gnome) 19 on a Dell Inspiron with Intel i3 processor, and a factory built-in Windows 7 home premium OS. The installation process completed successfully. But now when I log into ...
1
vote
0answers
48 views

Mount partition with truecrypt using the commandline

I'm trying to mount a encrypted HDD with truecrypt, but I cann't find the device. Where can I finde my HDD and what is the command to mount it in truecrypt? I'm using Raspbian on Raspberypi.
0
votes
2answers
419 views

Allow non-root user to read/write /dev files

In my /dev folder, I would like the following files to be user readable and writable: /dev/ttyUSB0 /dev/gpib0 How do I do this without using chgrp? I can edit /etc/udev/rules.d but I do not know ...
1
vote
1answer
75 views

Getting message “Error trying to open /dev/dvd exclusively” at the end of a DVD burning process when using growisofs

I am using Linux Fedora Core 4 (have to work with a legacy system) and trying to burn DVDs as a non-root user using the growisofs utility. I seem to be getting this error message at the end of the ...
1
vote
1answer
40 views

Disable emulated scroll wheel (EmulateWheel) for specific programs

Is it possible to disable evdev's EmulateWheel option when using specific programs? In my use case, I would like to be able to interact with the Acme text editor and with some VMs using my Thinkpad's ...
0
votes
0answers
137 views

Debian 7.3 - Nautilus doesn't show devices and partitions in left panel after changing partitions

Today I changed some partitions (moving, resizing) on my second hard drive and after restarting Debian I noticed that Nautilus doesn't show either partitions nor removable devices in left panel. In ...
1
vote
1answer
76 views

Permission of DVD device file not being retained when machine is rebooted

I am using Linux Fedora 4 and would like a non-root user to be able to write to DVDs using the DVD drive. I was able to do this by adding write access to the group of the device file /dev/scd0 and ...
1
vote
0answers
41 views

Create a fake read only device like file with incrond

I need to generate UUID with uuidgen (not through any function call, but external command, because processes which will read the file cannot call any APIs or external commands directly). My idea is ...
3
votes
1answer
128 views

USB device to be detected at the “same” /dev point always?

In Linux (actually I'm with CentOS v6.5), whenever I plug in my USB Terminal/Character Device (some kind of USB Adapter) for the first time (after booted), it is detected at: /dev/ttyUSB0 But ...
2
votes
1answer
50 views

What happens under the hood when some data is sent/received on an uart (or similar)?

I am trying to understand how computers work and I was thinking about peripherals. Here is what I understand so far but some parts are missing. Using an Arduino, I send some text every second (a then ...
6
votes
3answers
3k views

what is stored in /dev/pts files and Can we open those?

I am curious to know that what is stored in /dev/pts/ files . Can we open those files ? According to my knowledge /dev/pts files are created for ssh or telnet session .
3
votes
2answers
89 views

Is there a uniform way to discover information about devices?

UPD: Changed question title from manage devices to discover information about devices One of the frequent thing I do is look up info about devices on my systems. And I am constantly find myself ...
4
votes
1answer
7k views

/dev/sdb: No such file or directory (but /dev/sdb1 etc. exist)

I'm not sure what is wrong here but when running fdisk -l I don't get an output, and when running fdisk /dev/sdb # I get this fdisk: unable to open /dev/sdb: No such file or directory I'm ...
32
votes
3answers
3k views

Why are network interfaces not in /dev like other devices?

I'm mostly curious, but why aren't network interfaces in /dev? Are there any other kinds of devices that aren't represented as a node under /dev?
0
votes
1answer
137 views

Using USB hub for keyboard and mouse in multiseat

I want to configure a 2 user multi-seat in Linux. Is it possible to configure keyboard and mouse for second seat with a USB hub on a single USB port or I need to connect each of them to a separate USB ...
3
votes
1answer
2k views

Change the number of generated /dev/tty devices

I'm building an embedded Linux system, based on Gentoo. Using udev, all tty devices are probed with a PROGRAM stanza to determine if they are a modem. Right now the system boots up with 64 /dev/tty*. ...
0
votes
1answer
146 views

programming an Atmel Board with a USB to Serial converter, in Eclipse

I am actually trying to program an Atmel Evk1100 board directly from Mac OSX. My MCU is UC3A0512 I used to use Atmel32 Studio on Windows, but It looks like there no Mac Version. So, from what I've ...
3
votes
2answers
305 views

Why won't Linux let me play with /dev/dsp?

I'm working through a Linux textbook, and it's telling me about devices. It says that if I send the appropriate output to /dev/dsp, then it will play a sound. The example is cat file.wav > ...
0
votes
1answer
147 views

How to debug a device that changes from /dev/ttyUSB0 to /dev/ttyUSB1 at will?

I have a device plugged to a CentOS server that changes randomly from /dev/ttyUSB0 to /dev/ttyUSB1 and vice versa. The device I'm trying to connect is this one. How can I debug this?
3
votes
3answers
7k views

GSM modem does not create /dev/ttyUSB file

I installed Kannel in a server, and I want to use a GSM 3G USB modem to send/receive SMS messages, as described in section SMS Centers > GSM Modem of the Kannel User Guide. I have already installed, ...
1
vote
1answer
237 views

Difference between Device file and device drivers

I am beginner in device driver programming. I don't get the difference between device drivers and device files in Linux. Can anyone explain the difference?
0
votes
0answers
234 views

What are high level and low level device drivers

Recently I read that there are two types of drivers (at least for disk), one that are called high level drivers and another called low level device drivers. Can some one tell me what these are, and ...
4
votes
2answers
401 views

How to take sha-1, sha-256 or MD5 of CDs / DVDs?

I just tried burning both a Debian CD and a Debian DVD from their .iso files and I've got a weird behavior: the checksum of the CD is correct but the one of the DVD ain't. Here's what working: ...
3
votes
5answers
3k views

GNU/Linux (Debian): detecting hard-disks mappings?

Let's suppose you have two hard-disks: one internal (boots GNU/Linux); one external (USB). "fdisk -l" detects both, but will not tell you which is /dev/sda and which is /dev/sdb. "lsusb" will tell ...
1
vote
1answer
90 views

2 or more programs in same USB serial converter

Having a network of lets say 10 devices in RS-485, connected to the linux PC with a RS-485 to USB Converter. Already there is a C program interacting with the serial converter at /dev/ttyUSB0. My ...
1
vote
0answers
63 views

Which Unixes support cross-device filesystem links (in particular for rename)?

Just read the following on the FreeBSD man page for the rename syscall: ... [EXDEV] The link named by to and the file named by from are on different logical devices (file systems). Note that ...
4
votes
2answers
121 views

Can you identify transport via sysfs?

I'm writing a script, and I'm interested in being able to identify the transport class (fc - "fibre channel", scsi, iscsi, etc.) for a given block device. I can retrieve this information via ls -l ...
1
vote
0answers
338 views

Debian Wheezy USB2 ehci_hcd

I have a friend who decided to switch to Linux from Windows. I was helping her to get up and running as quickly as possible but we ran into a problem which I can't seem to solve. She uses Debian ...
3
votes
2answers
154 views

Permissions to print directly to USB printer

I've a netbook with Linux. I've a usb/serial printer and I added the line chmod 666 /dev/tty* to rc.local and it prints straight after a reboot. When I close the lid of a netbook for a while and then ...
1
vote
1answer
203 views

A drive changes device file name after resuming from suspend (Linux Mint 14)

I'm running into a very odd problem: When I resume Mint 14 from suspend, one of my drives (/dev/sdc) changes letter / device file name (to /dev/sdd). fdisk -l shows that it has the same partitions, ...
2
votes
0answers
83 views

How to rename devices for graphical output such as VGA0

On my Laptop the names of my graphical outputs change depending on what chip is activated in the BIOS. This leads to problems in some scripts where outputs such as VGA-0 or LVDS-0 are specified. So I ...
3
votes
2answers
797 views

Can I stop Linux from listening to a USB input device as a keyboard, but still capture events with a program?

I have a USB barcode scanner at /dev/input/event0 (/dev/input/by-id/usb-Metrologic_Metrologic_Scanner-event-kbd), and scanning a barcode causes it to send keypress events. I'm capturing these ...
0
votes
2answers
108 views

ECC on a single block device

I have an SSD that I suspect failing silently now and then. I have run badblocks on it and it is clear that it is not bad sectors but might instead be some race condition in the electronics, in which ...
0
votes
1answer
74 views

Random bug in Linux

Some time ago, I remember reading an article on randomization in computing, and how random you can actually get a system to be. The article came about, if I'm not mistaken, because of some seemingly ...
1
vote
0answers
245 views

udev Unable to Rename Network Device: Device or Resource Busy

I'm trying to use udev rules in order to give my network interfaces static, consistent names. However, it seems like there is some race condition happening preventing these rules from consistently ...
0
votes
2answers
129 views

IO utilization for /dev/null redirection?

I always use nohup to start my system. However, the output to nohup is so big that I'm thinking to redirect it to /dev/null. My concern is, will redirecting to /dev/null also incur some I/O operations ...
2
votes
1answer
130 views

GPS Device Attached to Linux Mint 15

I purchased a Silvercrest GPS device from Lidl recently, but the software that came with it is a tad "underpowered" to say the very least and has no Linux support. I'm attempting to get at the raw ...
1
vote
1answer
582 views

Beaglebone Black Device Tree for LCD4 cape

The device tree for LCD4 cape is located at /lib/firmware/BB-BONE-LCD4-01-00A1.dts When I looked into it, the declaration of those GPIO buttons confuse me. There are five buttons according to ...
1
vote
1answer
543 views

“Permission denied” when writing to /dev/stdout

Why cannot I write to /dev/stdout? I am logged in as the root user, what greater permission could I have? root@ubuntu:/# tcpdump -i 2 -w /dev/stdout tcpdump: /dev/stdout: Permission denied The ...
2
votes
1answer
422 views

ffmpeg webcam to device driver , output 8 bit grayscale

With the following command i'm trying to capture 10fps and send them the device driver. Now i want 8 bit gray raw frames (640x480= 307200 bytes per frame) to be send to the device driver. I can't ...
3
votes
2answers
1k views

/dev/hidraw: read permissions

What do I need to do to have read permissions on /dev/hidraw*? I'm seeing stuff about udev rules and saw this on the net, but the world of udev is like a foreign land to me, and if there's some sort ...
9
votes
4answers
7k views

Find out what device /dev/root represents in Linux?

On linux, there is a /dev/root device node. This will be the same block device as another device node, like /dev/sdaX. How can I resolve /dev/root to the 'real' device node in this situation, so ...
1
vote
0answers
92 views

Any good usb-serial (RS485) adapter to use with GNU/Linux?

I'm having problem with usb-serial (RS485) adapters. Firstly, I tried ch341 without success. The problem in this case is the linux driver, made by reverse engeneering (sadly without any help from the ...
2
votes
2answers
1k views

What is a device controller, and where does it fit in between the kernel and the device?

Can someone please explain the concept of a device controller (hard disc controller, NEC PD765 compatible controller etc.). Here are some definition of key terms which might be needed for the ...
1
vote
1answer
226 views

dd outputting: “function not implemented” when trying to write to /dev/sg11

I'm trying to use the following command: dd if=/dev/urandom of=/dev/sg11 bs=16K count=1 But when executing it, I get the following error: dd: writing `/dev/sg11': Function not implemented When I ...
4
votes
2answers
943 views

Why are there so many virtual terminal devices?

I've been reading the Advanced Linux Programming book and it mentions about virtual terminals which, if I understood it correctly, it is a Linux-specific feature (not in Unix) to allow multiple login ...
1
vote
1answer
71 views

Need list of HDD devices excluding my os HDD

I want list out whole HDD device excluding my os running device attached to my system. I did lot's of googling and fired many more commands in command line of linux. but can't gating proper output. ...