Sysfs is a Linux filesystem, normally mounted on /sys, which provides information about hardware and kernel components.

learn more… | top users | synonyms

2
votes
1answer
320 views

CONFIG_GPIO_SYSFS makes /sys/class/leds disappear

I have an embedded Linux board I'm working on, with a button and a couple LEDs. By default, I can control the LEDs via /sys/class/leds/redled/brightness However, I have no way to monitor the ...
0
votes
1answer
93 views

How to figure out primary/secondary IDE channel via sysfs (if possible)

Though I've got quite a good basic understanding of sysfs meanwhile, there are still things I cannot solve on my own. For a starter, I'd like to figure out via sysfs (later by scripting of course) ...
4
votes
0answers
2k views

Is it possible to get network interface index not via /sys?

So what I'm looking for is an interface index (or name) but the real one. if_nametoindex(3) and ioctl(2) don't seem to help me here. Now the only way I found how to do this is via /sys. Let me ...
2
votes
0answers
2k views

How to retrieve sysfs devpath of a USB flash drive given its corresponding partition sysfs path?

I have a USB flash drive connected to a hub. Its storage device partition devpath in sysfs is /devices/pci0000:00/0000:00:12.2/usb6/6-1/6-1.2/6-1.2:1.0/host10/target10:0:0/10:0:0:0/block/sdb/sdb1. I ...
1
vote
0answers
11 views

How to delete a device parameter for a cgroup?

Values of a specific parameter (for example, blkio.throttle.write_bps_device) for all devices are stored in a single file. echo "$MAJOR:$MINOR $LIMIT" > blkio.throttle.write_bps_device inserts/...
1
vote
0answers
40 views

Methods to find out what remounts /sys readonly (RHEL 6.7)

A few colleagues intermittently have issues with suspending/hibernating their computers (running RHEL 6.7, normal workstation install, nothing special). As it turned out, the problem was that /sys was ...
1
vote
0answers
138 views

when running `udevadm test`: `no db file to read /run/udev/data/+gpio_sw:PA7: No such file or directory`

I am trying to write an udev rule that matches a GPIO Pin of my Orange Pi (the GPIOs use the gpio-sunxi kernel module). My ultimate goal is to let users who are member of a particular group access ...
1
vote
0answers
103 views

Reconstructing dmidecode binary dump from /sys/firmware/dmi/tables

Background dmidecode utility is able to create a raw binary dump using --dump-bin option: root@here:~$ dmidecode --dump-bin foo.dump which can be re-used on another machine, producing effect as if ...
1
vote
0answers
51 views

A/D pins always read max (1023)

I am using the Aria G25 board from Acme Systems. I have their Terra board breakout. I have also asked this question on their google groups but thought it might be a more general issue so have posted ...
0
votes
0answers
35 views

Is there a way to get partition information of a disk with sysfs?

my first question here - so please, don't be too hard with me... As the title says: I am wondering if there is a way to get partition information of a disk with sysfs. I know about some different ...
0
votes
0answers
102 views

Getting the block device from an udev scsi_disk subsystem (udev C API)

I am using the udev C API to monitor connection and disconnection of SATA drives. struct udev_monitor *mon; mon = udev_monitor_new_from_netlink(udev, "udev"); ...
0
votes
0answers
393 views

Settings value in /sys/devices/platform/i8042/serio1/serio2/speed as no effect

I'm following this tutorial to ajust the TrackPoint speed for my Lenovo T420. However, setting a value in /sys/devices/platform/i8042/serio1/serio2/speed has no effect. The trackpoint is unaffected ...