Bug Report: can't edit Sysfs file.

Support for Android version of Total Commander

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
dindog
Senior Member
Senior Member
Posts: 315
Joined: 2010-10-18, 07:41 UTC

Bug Report: can't edit Sysfs file.

Post 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
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

That doesn't tell me any thing - is there a workaround?
Author of Total Commander
https://www.ghisler.com
User avatar
dindog
Senior Member
Senior Member
Posts: 315
Joined: 2010-10-18, 07:41 UTC

Post 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/ ?
User avatar
dindog
Senior Member
Senior Member
Posts: 315
Joined: 2010-10-18, 07:41 UTC

Post 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?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post 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.
Author of Total Commander
https://www.ghisler.com
User avatar
dindog
Senior Member
Senior Member
Posts: 315
Joined: 2010-10-18, 07:41 UTC

Post 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.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post 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.
Author of Total Commander
https://www.ghisler.com
User avatar
dindog
Senior Member
Senior Member
Posts: 315
Joined: 2010-10-18, 07:41 UTC

Post 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 :(
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post 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?
Author of Total Commander
https://www.ghisler.com
User avatar
dindog
Senior Member
Senior Member
Posts: 315
Joined: 2010-10-18, 07:41 UTC

Post 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.
Post Reply