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)

3
votes
1answer
18 views

Trying to read USB Audio Device, but /dev/hidraw0 is unavailable for reading

I'm trying to write a simple driver for my USB Sound Card (just for fun) on Xubuntu 14.04 -- for example, I want to have an opportunity to control volume on my laptop via this device. The problem is ...
1
vote
0answers
5 views

Capturing data from a Fluke 1620a via Bash /dev/tcp file descriptor

I am currently trying to develop a script that will connect to a Fluke DewK 1620a Themo-Hygrometer and pull the current temperature and humidity readings from the device. While these devices have a ...
1
vote
0answers
20 views

Is there support for flattened device tree in Sparc 32 port of the Linux kernel?

We are trying to write a minimal bootloader for booting the linux kernel on a Sparc V8 processor simulator. From what I understand, the interface between the bootloader and kernel consists of a data ...
0
votes
1answer
18 views

Can't Make a LDD for a Devkit8000

I'm trying to build a Linux Device Driver for a Devkit 8000. I'm getting the following errormessage: When I try to follow it's directions I get asked a bunch of yes/no questions I don't really ...
4
votes
2answers
31 views

How to run an application with certain group permissions?

I have a 3D printer, with which my PC can communicate through /dev/ttyACM0: crw-rw---- 1 root uucp 166, 0 16 nov 14:58 ttyACM0 The 3D printing application repetierHost requires read/write access ...
2
votes
1answer
21 views

create several /dev/xconsole files automatically upon boot

I understand from my previous question that the /dev/xconsole file can be created using mkfifo. On my system (Debian Wheezy), /dev/xconsole gets created automatically. I am wondering who creates it ...
3
votes
0answers
26 views

Why does a device show up as hidraw instead of hiddev?

I read the kernel documentation for hidraw and hiddev, and I understand the differences, but I am wondering how the kernel decides whether or not a device should show up as /dev/hidraw* or ...
2
votes
1answer
40 views

How to disable USB devices based on their vendor ID on GNU/Linux?

In that question someone wanted a blacklist for all USB devices, and then only allow specific devices. In this question, we want to accept all USB devices, but prevent the driver (e.g. cdc_acm) from ...
2
votes
0answers
16 views

PC speaker device missing

I've just connected a small internal PC speaker to my motherboard. The beep command is producing sounds correctly. The pcspkr is loaded but there is no /dev/pcsp, so I cannot send audio to it. How ...
0
votes
0answers
536 views

Why is my Mac, upgraded from Mavericks to Yosemite, no longer giving VMware Fusion needed resources?

I have a Mac upgraded from Mavericks to Yosemite. When I tried to run VMware Fusion, I got an error stating: Could not open /dev/vmmon: No such file or directory. Please make sure that the kernel ...
1
vote
1answer
18 views

talk to modbus device

I currently have a minimal install of Red Hat 6.5 running, on the machine I need to talk to a modbus device. I am wondering what tools and drivers are needed on a linux machine to talk to a modbus ...
3
votes
1answer
84 views

Mount an ISO virtually using /dev/sr0 device

I'm doing a study about how CD-ROM can be mounted virtually and all I could find out was mounting using loop devices. mount -o loop disk1.iso /mount-point This is fairly easy. I understand that ...
3
votes
0answers
40 views

Bad/strange USB device issue: failed to shutdown/restart

On a fresh Arch Linux installation with Intel i7 processor and an Nvidia graphics card, I noticed during boot log messages related to a usb device filled the screen before it reached the graphical ...
6
votes
2answers
247 views

What happens if I run fsck on /dev/sda instead of /dev/sda1?

When I have run fsck in the past I have always run it on what I thought was a filesystem partition, ie. fsck -yf /dev/sdaN, where N is the partition number on disk A. A friend of mine recently ran ...
1
vote
0answers
22 views

How/where are linux device capabilities / bitfields set?

I have a device that has this output in /proc/bus/input/devices: I: Bus=0003 Vendor=05b8 Product=3280 Version=0111 N: Name="PixArt USB Optical Mouse" P: Phys=usb-0000:00:1a.0-1.1/input0 S: ...
0
votes
0answers
46 views

How can I mount the Logitech C270 in the zynq-7000 (with Linaro linux)?

I am doing camera control programming for a university project using zynq 7000. I want to mount the camera module that's for the Logitech C270 (like this ...
10
votes
2answers
553 views

Are there alternatives to using `udev`?

While I understand the greatness of udev and appreciate the developers' effort, I was simply wondering if there is an alternative to it. For instance, I might imagine there should be a way to make ...
1
vote
1answer
47 views

create several /dev/xconsole files

I am using /dev/xconsole to send system logs from rsyslog. That works great, because I am don't have to store the logs on disk. I would like to have another similar file , i.e /dev/xconsole1 where I ...
1
vote
0answers
11 views

How do you determine the capabilities of a WebCam?

I have a collection of WebCam's lying around. Some of them are new, some go back a decade (gotta love not having to "upgrade" devices in Linux :). Somehow I've developed the impression that ...
0
votes
0answers
21 views

Is the device tree compiler tied to the kernel version?

I have a situation in which same device trees are used with different kernels. Can the device trees be build only once and used with all kernels? The reason I ask this is because I found the device ...
3
votes
1answer
151 views

cannot create special file /dev/pts/0

When using midnight commander in console, I cannot "toggle" the window (using CTRL-o Not an xterm or Linux console; the panels cannot be toggled however, my $TERM is set to linux. After some ...
1
vote
0answers
16 views

character device file (rtai_shm) disappears under runlevel=5 in fedora9 (exists when runlevel=3)

I am trying to run Realtime (RTAI) on my Linux Fedora 9 machine. For that, it is needed to have a character device file, named rtai_shm, in /dev, that takes care of shared memory. I have made this ...
0
votes
0answers
16 views

unitek nec upd720200 not detected

I've decided to buy an USB3.0 controller on PCI for my debian machine. I did a short research and it appeared that NEC chips will be fine. I've bought Unitek NEC UPD720200 and I does not work: I ...
0
votes
1answer
38 views

Determine driver for network interface [duplicate]

I wanted to see which driver was associated with some of the network interfaces listed by ip link. My first thought was to find the network interfaces in /dev and look at the device major and minor ...
1
vote
1answer
54 views

USB 3G dongle internet keeps failing on Fedora 20 laptop

I use a 3G dongle for internet in my summerhouse, it has worked fine all summer, but since yesterday it has been losing connection, or something and I have to unplug it and insert it again for the ...
1
vote
3answers
30 views

Looking at the content of a character device's file [duplicate]

Why is it possible to look at the contents of a block device's file like /dev/sda using cat or a hex editor? Why can I not do the same for a character device like /dev/pts/3?
1
vote
1answer
58 views

How do I send RTSP video to a program that reads from a character device?

I have an IP-CAM that streams video over RTSP and I want to detect bar codes from it with zbarcam (from Ubuntu's zbar-tools package). According zbarcam's manual, it expects to be given a video4linux ...
3
votes
3answers
205 views

equivalent of `grep -a /dev/sda1` on Darwin?

I want to run something like % sudo grep -i -a 'some-string' <drive device> On Linux, <drive device> would be something like /dev/sda1. How can I find the equivalent on Darwin? (In ...
3
votes
2answers
81 views

Transfering content of block devices

For the purpose of backups, I'd like to transfer (several) whole disk partitions over an ssh link. So the source is a block special device, and the target should be a regular file. Common tools seem ...
4
votes
1answer
122 views

look up the device from its tty file?

Here is from my Ubuntu $ ls /dev/*tty* /dev/tty /dev/tty17 /dev/tty26 /dev/tty35 /dev/tty44 /dev/tty53 /dev/tty62 /dev/ttyS12 /dev/ttyS21 /dev/ttyS30 /dev/tty0 /dev/tty18 /dev/tty27 ...
2
votes
0answers
143 views

/dev/sda not appearing after secure erase

I decided to wipe my SSD with a secure erase before installing Arch Linux, since the Arch wiki said that it would improve performance. I followed the instructions listed on the wiki, but now when I ...
2
votes
1answer
21 views

PCI header in my laptop looks different from free-electrons' PCI header

I'm trying to develope a pci driver but I can not compile it because my pci header is quite different from books and references. My distribution is 3.15.7-1-ARCH. ...
2
votes
1answer
69 views

How can I set device rw permissions permanetnly on raspbian?

Im using Raspbian (distribution made for Raspberry Pi based on Debian). I have some scripts that use i2c. Normally only root has read and write permissions for i2c. Im using this command to add i2c ...
4
votes
1answer
125 views

Does Posix require any devices?

Does Posix require any devices? For example, /dev/urandom, /dev/zero or /dev/null? I suspect not because of non-*nix OSes, but wanted to ask for completeness.
4
votes
2answers
105 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 ...
0
votes
0answers
26 views

Hotplug Device Driver Priority

Is it possible to have more than one driver for one purpose (eg. USB) included in the Linux kernel? If so, then how does the kernel decide which one to load?
1
vote
1answer
560 views

Prevent USB storage from using different device on reset

I have a hard drive in a USB enclosure that I am doing some data recovery on. The drive is in extremely bad shape and frequently resets on reads. The device registers as /dev/sdb. Sometimes, probably ...
2
votes
1answer
177 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 ...
2
votes
3answers
244 views

How to know if /dev/hda2 is Primary partition or Extended partition

If all four primary partitions exist on an IDE drive, they are numbered as follows: /dev/hda1 /dev/hda2 /dev/hda3 /dev/hda4 We have also the partitions on a disk with one primary partition and ...
1
vote
1answer
29 views

console (driver) not opening using any of the editor

In my initramfs, I have; [root@xilinx Peta_Microzed_15_05]# ls initramfs/dev/ console [root@xilinx Peta_Microzed_15_05]# nano initramfs/dev/console [root@xilinx Peta_Microzed_15_05]# The above ...
1
vote
1answer
293 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 ...
2
votes
1answer
93 views

Can renaming a network device cause race conditions?

Arch uses predictable network interface names. MATLAB licenses are linked to the MAC address of eth0, so I need to rename one of my devices eth0. In a machines with only one NIC I can just turn off ...
0
votes
0answers
45 views

Best Practices for Configuring/Reading Sensor Devices

I have a gadget with a number of environmental sensors attached via an I2C bus, and would like to be able configure and read these sensors via an unprivileged application. Unfortunately, there ...
0
votes
1answer
78 views

Two Linux Mint 16 systems Skyping--one can see both parties on webcam, the other can see neither

I installed Linux Mint 16 32-bit edition on my netbook and a friend's laptop. When we Skype, I can see her live image, and I can see my own live image, so everything looks and sounds right on my end. ...
0
votes
0answers
29 views

information about txop in ath9k wlan driver

I'm trying to implement the rate control algorithm into ath9k wireless LAN driver. I need to find if the transmission of first packet in the TXOP has failed or succeeded (ack received or not). I ...
3
votes
2answers
109 views

what is the difference between Device driver and kernel module

i know that driver is a software that can communicate with the hardware in order to control the device that attached to the computer.whereas kernel module is a small piece of code that can inserted ...
9
votes
2answers
3k 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 ...
2
votes
2answers
107 views

Check if a drive has been Zeroed with xxd and uniq?

I'm looking for a way to check if the entire binary contents of a USB device are purely 0s. I'm trying this command: sudo xxd /dev/sdb | uniq but it has no output and just runs forever. I've ...
7
votes
1answer
116 views

How to find which serial port is in use?

The Question: I plugged in a device (i.e. GSM modem) through a serial port (a.k.a. RS-232), and I need to see with which file in /dev/ filesystem this device was tied up, to be able to communicate ...
0
votes
2answers
577 views

Can I change devices permissions with chmod?

Before read: I don't want to use any udev rule. I need to change (programmatically) the permissions of some device. But first in order to underestand what I have to do (in code) I want to make the ...