Page 1 of 1

Bug Report: can't edit Sysfs file.

Posted: 2012-06-24, 12:54 UTC
by dindog
After I learn something about linux, now I know this issue :

Bug: Can't edit file in symbol link folder
http://ghisler.ch/board/viewtopic.php?t=34613

should be Sysfs file.... not symbol link



Sysfs - Wikipedia, the free encyclopedia
http://en.wikipedia.org/wiki/Sysfs

Posted: 2012-06-25, 12:51 UTC
by ghisler(Author)
That doesn't tell me any thing - is there a workaround?

Posted: 2012-06-25, 14:58 UTC
by dindog
narrow down the culprit is best I can do :)
it's a kind of ramdisk, maybe you need to mount it specially... did you try on your phone's dirs under /sys/ ?

Posted: 2012-07-08, 15:30 UTC
by dindog
I'm just curious, do you have an android phone or tablet? I thought it's a linux dir, so one can reproduce this issue on almost any android machine, quite easy... or you don't think this should be fixed?

Posted: 2012-07-09, 14:09 UTC
by ghisler(Author)
Yes, HTC Desire with Android 2.2 (no newer consumer release of Android has been offered for this device). There is no folder
/sys/class/misc/colorcontrol
on this device.

Posted: 2012-07-12, 05:28 UTC
by dindog
ghisler(Author) wrote:Yes, HTC Desire with Android 2.2 (no newer consumer release of Android has been offered for this device). There is no folder
/sys/class/misc/colorcontrol
on this device.
no, I mean, any folder in /sys/, this Sysfs is a ramdisk mount at /sys/, and the files inside are stored hardware parameter like CPU frequency and so on. ( because everything is a file in Linux )

So I believe you phone does have an /sys/ folder, and TC can't open any files in it.

Posted: 2012-07-12, 12:42 UTC
by ghisler(Author)
I have no problems to open files in the TC editor in /sys. For example, the file
/sys/class/misc/alarm/uevent
contains:

Code: Select all

MAJOR=10
MINOR=42
DEVNAME=alarm
although it shows up with 0 bytes in the file list. Other external editors like Ted can open them too.

Posted: 2012-07-12, 14:57 UTC
by dindog
ghisler(Author) wrote:I have no problems to open files in the TC editor in /sys. For example, the file
/sys/class/misc/alarm/uevent
contains:

Code: Select all

MAJOR=10
MINOR=42
DEVNAME=alarm
although it shows up with 0 bytes in the file list. Other external editors like Ted can open them too.
all files show 4KB here, as you can open it without issue, and I encounter that in every ROMs of Galaxy Nexus, I doubt this is a issue of Android 4.0+ specific... or even worse, phone specific... wish there is someone using Android 4.0 to test ti :(

Posted: 2012-07-13, 12:50 UTC
by ghisler(Author)
all files show 4KB here
This might be the problem - TC compares the loaded size with the reported size, and shows an error if they differ - except when the system reports 0 bytes. I wonder why your system reports 4k. Maybe some sort of cluster size?

Posted: 2012-07-13, 18:02 UTC
by dindog
ghisler(Author) wrote:
all files show 4KB here
This might be the problem - TC compares the loaded size with the reported size, and shows an error if they differ - except when the system reports 0 bytes. I wonder why your system reports 4k. Maybe some sort of cluster size?
no idea, but have to remind you that other apps are fine.