Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Bug Report: can't edit Sysfs file.

 
Post new topic   Reply to topic    Total Commander Forum Index -> Total Commander for Android Printable version
View previous topic :: View next topic  
Author Message
dindog
Junior Member
Junior Member


Joined: 18 Oct 2010
Posts: 89

PostPosted: Sun Jun 24, 2012 6:54 am    Post subject: Bug Report: can't edit Sysfs file. Reply with quote

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
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 24702
Location: Switzerland

PostPosted: Mon Jun 25, 2012 6:51 am    Post subject: Reply with quote

That doesn't tell me any thing - is there a workaround?
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
dindog
Junior Member
Junior Member


Joined: 18 Oct 2010
Posts: 89

PostPosted: Mon Jun 25, 2012 8:58 am    Post subject: Reply with quote

narrow down the culprit is best I can do Smile
it's a kind of ramdisk, maybe you need to mount it specially... did you try on your phone's dirs under /sys/ ?
Back to top
View user's profile Send private message
dindog
Junior Member
Junior Member


Joined: 18 Oct 2010
Posts: 89

PostPosted: Sun Jul 08, 2012 9:30 am    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 24702
Location: Switzerland

PostPosted: Mon Jul 09, 2012 8:09 am    Post subject: Reply with quote

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
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
dindog
Junior Member
Junior Member


Joined: 18 Oct 2010
Posts: 89

PostPosted: Wed Jul 11, 2012 11:28 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 24702
Location: Switzerland

PostPosted: Thu Jul 12, 2012 6:42 am    Post subject: Reply with quote

I have no problems to open files in the TC editor in /sys. For example, the file
/sys/class/misc/alarm/uevent
contains:
Code:
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
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
dindog
Junior Member
Junior Member


Joined: 18 Oct 2010
Posts: 89

PostPosted: Thu Jul 12, 2012 8:57 am    Post subject: Reply with quote

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:
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 Sad
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 24702
Location: Switzerland

PostPosted: Fri Jul 13, 2012 6:50 am    Post subject: Reply with quote

Quote:
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
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
dindog
Junior Member
Junior Member


Joined: 18 Oct 2010
Posts: 89

PostPosted: Fri Jul 13, 2012 12:02 pm    Post subject: Reply with quote

ghisler(Author) wrote:
Quote:
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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> Total Commander for Android All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Impressum: This site is maintained by Ghisler Software GmbH

Using phpBB © 2001-2005 phpBB Group