devices refers to questions about the Unix/Linux device special files, normally these are under /dev. Do not use this tag for physical devices (for that use e.g. usb or pci).

learn more… | top users | synonyms (1)

0
votes
2answers
668 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 ...
6
votes
1answer
733 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
vote
0answers
411 views

Check if Keyboard and Mouse are plugged in

Is there a way to detect if a keyboard and a mouse is plugged in (and working) in Linux? This will be embedded in a PXE setup, so I only have Kernel + Modules and Busybox available. Bonus question: ...
2
votes
1answer
1k views

“PS/2 Generic Mouse” gets lost. How to reload without reboot?

I am running Ubuntu 12.04LTS on a ThinkPad E420s. My Trackpoint is recognized as "PS/2 Generic Mouse". My problem is that it doesn't load/disappears after booting or after suspension. I can't move ...
5
votes
2answers
257 views

Can I query which processes (if any) are currently accessing the microphone?

I'm running Debian (technically Raspbian), trying to get a Star-Trek style voice-command system. I've got it mostly up and running, but in the interests of privacy and all that jazz, I don't want my ...
2
votes
1answer
65 views

Assigning static device path

I have 4 flash cards plugged in, sequentially named by system: /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1 I want to assign static pathes to them, so every time the system boots up their pathes will ...
-1
votes
1answer
204 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
193 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 ...
1
vote
1answer
2k views

pvcreate error on partition

I can't create this partition, I'm getting this error shown below: Device /dev/mapper/vg_paperino-lv_rootp1 not found (or ignored by filtering) Below are the steps that I'm doing on CentOS: ...
7
votes
1answer
5k views

using devtmpfs for /dev

I have noticed the following option in the kernel: CONFIG_DEVTMPFS Device Drivers -> Generic Driver Options -> Maintain devtmpfs to mount at /dev And I see that it is enabled by default in ...
4
votes
2answers
961 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
257 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 ...
1
vote
1answer
449 views

Installing a platform driver

I have recently acquired a device driver for an integrated watchdog timer on a x86 board on which I am running a minimal Linux system. The kernel is 3.6.11 and it has been built using buildroot. My ...
6
votes
4answers
1k 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
305 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
4k 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
160 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
1k 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?
2
votes
0answers
77 views

How to know when a device is ready

I have firewire mixing console and I wrote an udev rule which calls a script to set up the whole audio chain (alsa -> pulseaudio -> jackd -> firewire) as soon an the console is switched on. Now I ...
3
votes
2answers
3k views

Creating eth0 with consistent network device naming

From my understanding, Arch Linux uses Consistent Network Device Naming where the network devices are no longer named eth0, eth1, etc. I use the proprietary MATLAB software which requires a device ...
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?
6
votes
1answer
5k views

How to Reset/Cycle Power to a PCIe Device?

I have a PCIe device that only works correctly when the computer is fully powered off then on again. Issuing a simple reboot or reboot -p command does not appear to cycle the power to the PCIe card, ...
7
votes
2answers
2k 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 ...
3
votes
2answers
265 views

Automated partition selection in bash script

I'm trying to write a bash script to run from Linux on a CD or flashdrive that can mount Windows and change stuff, but I don't know how to go about detecting which partition/drive is Windows. My best ...
8
votes
2answers
6k 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
3k 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 ...
0
votes
1answer
170 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 ...
2
votes
1answer
314 views

open() console for default file descriptors

I'm reading a shell program implementation in C ( the xv6 shell from MIT's 6.828 Operating System Engineering course ). The main() function for this shell starts with the following code: //Assumes ...
2
votes
0answers
139 views

Block Devices & Partitions

I partitioned a microSD card (mmcblk1) into two partitions mmcblk1p1 and mmcblk1p2. If use a dedicated card reader I am able to see the entire SD card and its partitions using various disk management ...
1
vote
2answers
217 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?
0
votes
0answers
21 views

How to associate device to sata port disk [duplicate]

I have 2 hard disks connected to 2 sata ports. The disks are associated to /dev/sda and /dev/sdb. These hard disks are in software raid so it happens that the system can go for some time with only ...
2
votes
0answers
183 views

Webcam Device Driver to support H.264

I have a Creative Live Cam Connect HD (id: 041e:4093) and this webcam has an on-board H.264 encoder. Unfortunately v4l2 only inputs the feed as MJPG. $ v4l2-ctl --list-formats ioctl: VIDIOC_ENUM_FMT ...
1
vote
1answer
230 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
3answers
469 views

Why doesn't xsetwacom work from udev?

I made a script to rotate my Wacom Bamboo tablet 180 degrees. It works fine when I execute it as myself (user) or root, but when started from udev (i.e. when plugging the tablet into a usb port) it ...
0
votes
2answers
71 views

Changes to files don't show up until the partition is unmounted

I have a FAT32 filesystem mounted. After changing a file on it, I can read the file back and still see the old version. My changes don't actually persist until I unmount and remount the partition. Is ...
2
votes
1answer
124 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 ...
7
votes
1answer
2k views

Writing /dev/random to file?

If you ran the following, what would happen? cat /dev/random > ~/randomFile # don't run Would it be written until the drive runs out of space, or would the system see a problem with this and ...
0
votes
1answer
565 views

remove /dev/mapper/fedora-root and /dev/mapper/fedora-swap

I want to replace Fedora 18 with Ubuntu but I have these devices listed when partitioning. I only have a hard disk labelled sda, where does these virtual device come from? How I do remove them?
4
votes
1answer
2k views

Query USB current

How can I obtain information about the amount of current negotiated by a device attached to a USB port? I am looking for information similar to this presented by OS X in terms of current available ...
0
votes
2answers
347 views

Problem mounting my iRiver story HD on Ubuntu

I would like to connect my iRiver Story HD to my ubuntu 12.04 machine but as I connect it I get this error: Unable to mount Story HD Error mounting: mount: wrong fs type, bad option, bad ...
3
votes
0answers
182 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 ...
1
vote
4answers
5k views

Updated Fedora 18 - no sound devices, just dummy output

So, yesterday I updated the recently released Fedora 18, this has been done: Packages Altered: Updated grubby-8.20-1.fc18.x86_64 @?fedora Update 8.22-1.fc18.x86_64 ...
2
votes
1answer
78 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
585 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 ...
0
votes
2answers
145 views

What files are being updated or written in /dev/sda?

root@host [/etc]# iostat -xk Linux 2.6.32-279.19.1.el6.x86_64 (host.superhostsite.com) 01/13/2013 _x86_64_ (24 CPU) avg-cpu: %user %nice %system %iowait %steal %idle ...
5
votes
2answers
1k 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 ...
9
votes
2answers
10k views

What are character special and block special files in a unix system?

How are character special files and block special files different from regular files in a Inix-like system? Why are they called “character special” and “block special” respectively?
2
votes
0answers
181 views

Connected Android device - brings the network down?

I have dealt with sensitive development under Android, and have recently decided to switch to Linux now sit under (Mint 13 - KDE). But strangely, when the Android device is connected, my network goes ...
2
votes
2answers
133 views

Why I have two /dev/sdx entries with a single disk?

In my laptop (running Linux) I have only one SSD, connected to the SATA3 port. Why I have two sdx entries in /dev directory? In particular I see /dev/sda and /dev/sdb, and /dev/sda is the SSD: # ...
3
votes
0answers
457 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 ...