3
votes
2answers
53 views

How to programatically detect when a device raises an interrupt?

How to programatically detect when a device raises an interrupt? This can be when a device is connected or disconnected. And also this case: for example: when a finger is held over a fingerprint ...
2
votes
0answers
49 views

How to get device filename from lsusb output or by device path

Related question: USB connect/disconnect notification When the device is plugged/unplugged, I get instant notification, that's great. But to make it (almost) perfect, I also want to get device ...
1
vote
1answer
71 views

Why isn't sda1 showing up in dev and how can I fix that?

I have an embedded Linux device and I was trying to copy some files to it. I plugged in a USB stick, the dmesg shows that it was recognized, but for some reason /dev/sda1 never showed up. I'm trying ...
9
votes
2answers
439 views

How can I find available network interfaces?

This is in regard to linux, but if anyone knows of a general *nix method that would be good. I booted a system yesterday with an ethernet cable plugged in. "NetworkManager" is not installed, so once ...
3
votes
1answer
62 views

How to get address of connected USB modem?

I just connected my N81 telephone as USB modem to Linux Mint 14. All works fine, just wondering how to find a full path to this device, something like /dev/tty*.
1
vote
1answer
46 views

Why does RTC device have 254,0 instead of 10,135 as Major,Minor numbers?

Why isn't /dev/rtc the well known "c 10 135" device that it's on x86, but a magic undocumented "c 254 0" device? Devices.txt lists this major number as LOCAL/EXPERIMENTAL USE. I'm working on a ...
1
vote
0answers
74 views

Why is my embedded Linux unable to detect the sd device?

I have this ARM9 SAM9G25 embedded System, running a Linux 2.6.39 Kernel and a Busybox. I put the Images (of the bootloaders, and the linux+initramfs) on a SD so that in the end the system is booting ...
4
votes
1answer
529 views

Difference between /dev and /sys/class?

What is the difference between the device representation in /dev between the one in /sys/class? Is one prefered over the other? Is there something one offers and the other doesn't?
1
vote
0answers
28 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 ...
1
vote
1answer
76 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 ...
3
votes
1answer
130 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 ...
1
vote
1answer
258 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?
1
vote
1answer
93 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 ...
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 ...
6
votes
3answers
4k 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 .
2
votes
1answer
133 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 ...
3
votes
1answer
312 views

Udev rule to match multiple node USB device

I have a 3G/GPS device that creates 5 tty nodes, although it's only one physical USB connection. Basically, a multi port usb-serial adapter. I'm trying to create some udev rules to make sure those ...
1
vote
0answers
93 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 ...
4
votes
2answers
410 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: ...
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
2answers
536 views

virt-install and /dev/hda vs. /dev/sda

It appears that my virt-install xml file (i.e. created when defining a VM) specifies targets "hda", "hdb", and so on as the devices for disks, however, the VM, once created, lists /dev/sda, /dev/sdb, ...
0
votes
2answers
616 views

Cheap 100% Debian compatible ultrabooks [closed]

I'm looking for relatively cheap ultrabooks with 100% Debian compatible features. I have several ultrabooks on my list but they contain some additional features which i don't need (additional ...
4
votes
1answer
544 views

Find out if a specific device is an USB mass storage

Context I'm automating SD card imaging from an existing dd factory image. The SD card is always connected through an external USB card reader and thus appears in the system as a SCSI block device ...
-1
votes
1answer
189 views

what type of device drivers are available in linux [closed]

The different types of device drivers used in linux are character device and block device. Is there another classification?
2
votes
2answers
171 views

Detecting the device of a crypto mount

I have an external eSATA-hdd on an OpenSUSE 12.2 system. The external hdd has an LVM on a dm-crypt partition. I mount it by powering it up and then doing rescan-scsi-bus.sh cryptsetup -v luksOpen ...
3
votes
2answers
818 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 ...
1
vote
1answer
203 views

Creating a terminal device for interprocess communication

I'd like to know how to create a terminal device to simulate a piece of hardware connected through a serial port. Basically, tty device with a certain baud rate that can be read from and written to ...
4
votes
4answers
822 views

Special File that causes I/O error

I want to automatically test if a piece of software reacts as expected if an essential SQLite DB file fails to be read (causing an I/O error). Exactly that happened some days ago at a client. We ...
3
votes
2answers
267 views

Why doesn't `head -c 2 /dev/hwrng` work?

I have an Atmel 97SC3201 in my computer and set the following in the kernel: CONFIG_HW_RANDOM_TPM CONFIG_TCG_TPM CONFIG_TCG_ATMEL /dev has tpm0 and hwrng, but running this command returns the ...
5
votes
3answers
3k views

RHEL: Creating stable names for network interfaces

We have a RHEL 5.5 box with 8 interfaces. And the eth interface naming is flip flopping. Sometimes eth0 comes up on physical port 7th, and sometimes on another physical port. We want the naming to ...
1
vote
2answers
146 views

/dev/console points to tty0?

I've been trying to understand the /dev/console device, but there are a few things I'm not clear on: What is the purpose of this device? From what I can gather it's just a place for the kernel to ...
4
votes
1answer
851 views

Explain EV in /proc/bus/input/devices data

Can anybody explain to me what the EV value in /proc/bus/input/devices is? The keyboard always has value 120013. Why?
3
votes
2answers
2k views

Linux : Major and Minor device numbers

What types of devices fall under the major device number category and what types of devices fall under the minor device number category. What is the real difference between the two categories?
7
votes
2answers
1k views

wlan number assignment

How or where does Linux determine the assignment of a network device? Specifically, wlan0 or wlan1 for wireless USB devices. I plugged in a TP USB wireless a while ago, and it was assigned wlan0. I ...
7
votes
2answers
5k views

How does cat know the baud rate of the serial port?

I regularly use cat to view debugging information in the console from my FPGA development board over the serial connection, but I never have had to tell linux what the baud rate is. How does cat know ...
3
votes
2answers
2k views

How to grant non-root user access to device files

I have device file that appears in /dev when a specific board is plugged in. The read and write operations to it work just fine, but in order to open the device file the program needs to be executed ...
1
vote
2answers
177 views

Perform an action when a wireless keyboard is connected

I need to perform a command when I connect a bluetooth keyboard. How can I 'listen' this event?
2
votes
1answer
119 views

What is the source of truth for currently active tty/pts connections?

I'm looking for a simple way to determine the number of currently logged in users, using only the filesystem and basic bash functions (instead of using binaries). The uptime binary appears to be ...
3
votes
0answers
165 views

How to route one video device to multiple programs

I'd like to direct the output of a single capture card (Hauppauge PVR-150) to two programs: VLC (for streaming on LAN) and MythTV for scheduled recording. I think it's possible to do this with the ...
2
votes
1answer
74 views

Standard way to expose device file to userland applications running on an unprivileged user account?

I just finished the first version of a Linux kernel module I've written in C. The module creates a device file (/dev/wn0) that controls a USB device with three LED lights. For example, running as ...
5
votes
4answers
486 views

Testing, from a script, if audio devices are in silent?

Is there a default program where I can check if my audio devices are in silent? Edit: By silence, I mean that if there is something playing on that (not just activated or opened) Something like ...
4
votes
2answers
966 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 ...
3
votes
0answers
382 views

How do I let an SDL app (not running as root) use the console

I want to use an SDL-based program to display graphics on the console, without having to log on from the console, and without running the program as root. For example, I want to be able to run it via ...
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 ...
5
votes
2answers
4k views

What causes /dev/disk/by-label to be populated?

I've noticed that Linux distributions typically have a /dev/disk/by-label directory, but this isn't always the case (For example, the CirrOS Linux test image doesn't have one). What's required on a ...
3
votes
2answers
2k views

Prevent usbhid from claiming USB device

Directly related: Prevent claiming of novelty usb device by usbhid so I can control it with libusb? I want to access an RFID reader (works as HID device) from a program that uses libusb-0.1. In the ...
3
votes
1answer
1k views

How do I setup more then 10 loopback device?

From this answer the solution is to modprobe loop max_loop=64 Which makes me allowed to use 64 loopback devices then mknod -m 660 /dev/loop8 b 7 8 To create the devices. I did this for 8, 9, 10 ...
4
votes
0answers
1k views

How do I find out the device node corresponding to my device in SuSE 8?

I'm forced to work with a bunch of point-of-sale systems running SuSE 8. They are my client's computers. We are stuck dealing with these old systems until they get to upgrade their whole fleet to SLE ...
2
votes
1answer
248 views

Why slowusb and scandelay?

I'm running linux-3.4.9 compiled with genkernel, and booting from a USB HDD. I was slightly annoyed by the slow boot process, in particular, during the execution of genkernel scripts at the modprobe ...
2
votes
2answers
652 views

Chroot Risks w/ /dev and /proc

I am planning to set up a few chroot jails for some users to run/test Java applications (lets just assume each application is untrusted). Is there any risk involved with mounting /dev and /proc into ...