sysfs Questions
4
In Linux, is there a way to find out which PCI card is plugged into which PCI slot?
/sys/bus/pci/devices/ contains many devices (bridges, CPU channels, etc.) that are not cards and I was not able ...
3
Just off the bat I'd like to state that I'm aware of Python and other high level implementations for manipulating GPIO on the Raspberry PI. I've also been using the WiringPI C API and am experienci...
Thalassography asked 10/11, 2015 at 9:17
1
I want to send raw HDMI-CEC commands (adb shell) from an Amlogic 905x ARM board (Android 6) to test the functionality. The board is rooted (tested, 'adb root' works) and connected to a TV with CEC ...
2
Solved
I am trying to create a sysfs for an implementation of mine in android and stuck at creating a folder of my own in CLASS.
My requirement:
/sys/class/example_class/my_sysfs_directory/file_one.
...
Trave asked 29/10, 2013 at 9:8
3
Solved
I wrote a platform driver for a peripheral we developed and would like to expose some configuration options to the sysfs. I have managed to create the appropriate files using attribute structs (see...
Retrocede asked 15/5, 2016 at 11:42
1
Solved
I am working with a DragonBoard 410C using Android 5.1 and Kotlin to experiment with the GPIO pins on the 40 pin low power connector. The library I'm using is using the sysfs interface for interact...
Armourer asked 23/9, 2020 at 12:36
2
Solved
Using the legacy sysfs GPIO under Android and Linux the first step in the process is toe export the particular GPIO pins you want to use. And when you are done with the GPIO pin to unexport it.
I'v...
Suborn asked 6/9, 2020 at 22:23
1
Solved
I'm working with a recently purchased DragonBoard 410C running the Android 5.1 operating system and using Android Studio with Kotlin for generating a sample application that explores some of the ha...
Pansophy asked 30/8, 2020 at 4:10
2
Solved
I currently have the trouble of some hardware overheating regularly. Looking through the Linux kernel, I found that the thermal sensors are currently fully supported, however the preconfigured limi...
Inspissate asked 23/11, 2015 at 14:18
3
embedded linux system
ls -al /sys/class/xxxx
-r--r--r-- 4096
ftell/lstat(st_size) return 4096
fread(fp, 1, 4096, buf) returns 3
Actually, there are only 3 bytes in file using vi to open it.
Wh...
2
I am trying to create a device tree for an embedded system, and would like to expose a few GPIOs to userspace. These are not and should not be used by kernel drivers. For instance, there is a USB d...
Sawyers asked 22/4, 2016 at 20:53
1
Solved
To handle a sysfs read I need to create a show function which is added to a kobj_attribute structure. The prototype of the function is defined as:
ssize_t (*show)(struct kobject *kobj, struct kobj...
Clynes asked 15/8, 2018 at 22:22
3
Solved
I'm learning how to use sysfs in my Linux modules, but I'm having the hardest time finding current documentation on these topics. The Linux Device Drivers 3rd Edition book I've been using seems to ...
Immunize asked 26/4, 2013 at 20:56
1
I'm writing a driver to control some custom hardware.
In the old days (i.e. 15yrs ago) I was doing this with ioctls, but am now digging into sysfs as a possible alternative.
As I understand it, ...
Coan asked 10/11, 2016 at 13:53
0
I am working on a driver that creates a sysfs attribute file. It is intended that an application be notified of changes to this attribute by using the poll() method. I intend to use the sysfs_notif...
Hunan asked 27/10, 2016 at 23:50
2
How can I detect battery charging speed in android device?
I can detect battery status using below code. but not charging speed.
IntentFilter filter = new IntentFilter();
filter.addAction(Intent.A...
Olives asked 12/8, 2016 at 7:44
1
Solved
In a linux device driver, creating sysfs attributes in probe is way too racy--specifically, it experiences a race condition with userspace. The recommended workaround is to add your attributes to v...
Velamen asked 27/7, 2016 at 18:35
1
Solved
Summary
My aim is to control the GPIO pins in Peppermint 4 Linux (Kernel version 3.8.0) on an Intel motherboard (NM70 chipset with C1037U processor).
I'm debugging issues I'm having using the sysfs...
Touslesmois asked 6/6, 2014 at 17:44
2
Solved
I am developing a informational android app where I want to read the charge rate in milli-amps when the device is charging. I have seen other apps that can do this such as Ampere.
I believe the i...
2
Solved
I have started looking at linux kernel code for my OS course. In that I'm interested in sys file system (sysfs). I'm interested in finding out when and how sysfs gets created? Which files in linux ...
Piled asked 22/10, 2013 at 21:47
1
I created kernel driver as loadable module for one of my I2C devices. The driver creates few sysfs file under I2C corresponding folder (/sys/devices/i2c/i2c-0/0-0008/) using instantiation through n...
Penny asked 1/12, 2014 at 10:31
1
I want to pass a string > 1024 chars to my module (filesystem).
As kernel parameters are limited to 1024 chars, someone recommended to use sysfs instead.
I tried to include this example in my supe...
Linseed asked 24/4, 2014 at 21:58
0
My aim is to control the GPIO pins in Peppermint 4 Linux (Kernel version 3.8.0) on an Intel motherboard (NM70 chipset with C1037U processor).
How can you check whether your kernel supports GPIO on...
Enedina asked 10/6, 2014 at 16:45
1
Solved
Assume that the gpio X can be exported in sysfs as an input pin, after doing that a directory called gpioX will be created into /sys/class/gpio/. gpioX/ contains few file such as "value" which repr...
Narbada asked 2/11, 2013 at 17:37
2
I have an embedded system I'm working with, and it currently uses the sysfs to control certain features.
However, there is function that we would like to speed up, if possible.
I discovered that ...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.