LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-06-2007, 10:30 PM   #1
nsp
Member
 
Registered: Jul 2006
Location: China
Distribution: Slackware
Posts: 68

Rep: Reputation: 15
/sys/devices/system/ Permission denied


Hello everyone,

I am using slackware 11.0 on a laptop computer ThinkPad X31. The kernel is 2.6.17.13-smp from the directory /extra in slackware distribution. When I try to add new files in directories such as /sys/devices/system/.... to control my hardware, such as to adjust the cpu frequency, or to adjust speed of the track point, the system always tell me 'permission denied', even I have logged in as root:

# cp ./speed /sys/devices/platform/i8042/serio0/
bash: /sys/devices/platform/i8042/serio0/speed: Permission denied

I was told that in some other distributions, with the default kernel, this kind of operation is allowed for the root account. So, what's the matter with my kernel?


Another question: I am using 2.6.17.13-smp kernel, but the file /pro/cpuinfo shows that there is only one cpu, not like other distribution's smp kernel, simulating multi processors. So, how can my kernel support simulating multi processors?

Should I recompile the kernel? I don't try it yet. Is it necessary? And is it difficult?

Sorry for my English. Thanks for your attention.
 
Old 01-06-2007, 10:34 PM   #2
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Is there already a file at location
"/sys/devices/platform/i8042/serio0/speed"
?

If so, then back it up (change permissions if necessary) and then delete it (as long as you know what you are doing).

If that doesn't work, check the permissions of each folder and file in that path: i.e.
/sys
/sys/devices
/sys/..............

oh, and post the output of:

Code:
cat /proc/cpuinfo

Last edited by H_TeXMeX_H; 01-06-2007 at 10:38 PM.
 
Old 01-06-2007, 10:47 PM   #3
nsp
Member
 
Registered: Jul 2006
Location: China
Distribution: Slackware
Posts: 68

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by H_TeXMeX_H
Is there already a file at location
"/sys/devices/platform/i8042/serio0/speed"
?

If so, then back it up (change permissions if necessary) and then delete it (as long as you know what you are doing).

If that doesn't work, check the permissions of each folder and file in that path: i.e.
/sys
/sys/devices
/sys/..............

oh, and post the output of:

Code:
cat /proc/cpuinfo
Thank you.

Sorry I am surfing internet not on my own computer, so I can't answer all of them on-line. By my memory, I can tell:

1. There is no "/sys/devices/platform/i8042/serio0/speed" file already.

2. I can tell "/sys/devices/platform/i8042/serio0/" is writable for root account for I have checked it. But I am not sure what about its parent directories: "/sys", "/sys/devices",...

3. I'll post the output of /proc/cpuinfo later.


Thanks again.
 
Old 01-06-2007, 11:28 PM   #4
nsp
Member
 
Registered: Jul 2006
Location: China
Distribution: Slackware
Posts: 68

Original Poster
Rep: Reputation: 15
H_TeXMeX_H,

I have checked my computer, now I can answer this:

1. All of the directories
/sys
/sys/devices
.....

are "drwxr-xr-x", so they are writable for root account.

2. about /proc/cpuinfo

Code:
$ cat /proc/cpuinfo 
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 9
model name      : Intel(R) Pentium(R) M processor 1700MHz
stepping        : 5
cpu MHz         : 1700.000
cache size      : 1024 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 2
wp              : yes
flags           : fpu vme de pse tsc msr mce cx8 sep mtrr 
                  pge mca cmov pat clflush dts acpi mmx fxsr
                  sse sse2 tm pbe up est tm2
bogomips        : 3418.24
Thanks

Last edited by nsp; 01-06-2007 at 11:30 PM.
 
Old 01-07-2007, 12:10 AM   #5
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
AFAIK the "Intel(R) Pentium(R) M processor 1700MHz" is NOT HT compatible, and definitely not dual core. Thus, you are seeing one CPU because that is the truth ... you shouldn't even be running the SMP kernel. The SMP kernel is pretty much just for Pentium 4s with HT enabled (and, if they exist (I don't know of any), other 32-bit Intel processors with more than one core (virtual or real)).

As for the /sys directory, some of the things in there may be in use (I just checked the directory you were referring to and get the same result), so if you really must change them try booting from a live CD and then changing things from there.

Last edited by H_TeXMeX_H; 01-07-2007 at 12:15 AM.
 
Old 01-07-2007, 08:40 AM   #6
jonnycando
Member
 
Registered: Nov 2006
Location: Virginia
Distribution: OpenSuSE 10.2
Posts: 121

Rep: Reputation: 15
Quote:
Originally Posted by H_TeXMeX_H
AFAIK the "Intel(R) Pentium(R) M processor 1700MHz" is NOT HT compatible, and definitely not dual core. Thus, you are seeing one CPU because that is the truth ... you shouldn't even be running the SMP kernel. The SMP kernel is pretty much just for Pentium 4s with HT enabled (and, if they exist (I don't know of any), other 32-bit Intel processors with more than one core (virtual or real)).

As for the /sys directory, some of the things in there may be in use (I just checked the directory you were referring to and get the same result), so if you really must change them try booting from a live CD and then changing things from there.
If he has the Pentium M number 780, he has what Intel calls "Dual Core technology." and they have them 1.7 to 2.26 Ghz.
 
Old 01-07-2007, 12:13 PM   #7
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Here is your processor:

http://processorfinder.intel.com/det...px?sSpec=SL6N9

Here is a Pentium 4 with HT (for example):

http://processorfinder.intel.com/det...px?sSpec=SL8PY

Show me where it says the "Intel(R) Pentium(R) M processor 1700MHz" is HT capable.
 
Old 01-07-2007, 08:59 PM   #8
jonnycando
Member
 
Registered: Nov 2006
Location: Virginia
Distribution: OpenSuSE 10.2
Posts: 121

Rep: Reputation: 15
Quote:
Originally Posted by H_TeXMeX_H
Here is your processor:

http://processorfinder.intel.com/det...px?sSpec=SL6N9

Here is a Pentium 4 with HT (for example):

http://processorfinder.intel.com/det...px?sSpec=SL8PY

Show me where it says the "Intel(R) Pentium(R) M processor 1700MHz" is HT capable.
I don't contend it is. But at the risk of being wrong, if you can have one in Dual core, does that not obviate any advantage of HT? And would the SMP kernel not be useful with a Dual Core processor. My specific ingnorance here based on the fact that I am still single core over here in the hills, heck we just got electric lights.

Last edited by jonnycando; 01-07-2007 at 09:00 PM.
 
Old 01-07-2007, 11:36 PM   #9
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Well, if indeed it is dual core, the smp kernel should work and you should see both cores in /proc/cpuinfo. All the info I have so far suggests that the processor nsp has is neither dual-core nor does it support hyperthreading (HT) and does not show two cores in /proc/cpuinfo.
 
Old 01-09-2007, 04:57 AM   #10
nsp
Member
 
Registered: Jul 2006
Location: China
Distribution: Slackware
Posts: 68

Original Poster
Rep: Reputation: 15
H_TeXMeX_H and jonnycando,

Thank you for your posts. I think now I have some ideas about smp and "HT flag".

But for the first question about changing or creating files in /sys/devices/..., I still think there is something unnormal in my system, because others can do it directly:

http://www.thinkwiki.org/wiki/How_to...the_TrackPoint

http://www.thinkwiki.org/wiki/How_to...quency_Scaling

The later page is for changing cpu frequency. It tells that the command:
Code:
# echo 900000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
will work, but I failed it. There is a file "/sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed" already there.

But I can do this kind of operation:
Code:
# cp /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq 
     /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
And it works well. Both of the two files already exist.

Thanks again.

Last edited by nsp; 01-09-2007 at 05:08 AM.
 
Old 01-09-2007, 06:48 PM   #11
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Well, I'm betting that some of the directories in there are in use by the kernel (not sure, but have no other ideas). Try booting into a live CD and changing it from there, then boot back in normally.

Anyone else have any idea, I'm out of them.
 
Old 01-11-2007, 05:05 AM   #12
nsp
Member
 
Registered: Jul 2006
Location: China
Distribution: Slackware
Posts: 68

Original Poster
Rep: Reputation: 15
H_TeXMeX_H,

I think that your method will work, but don't fit for me, for I am trying to change or add files while my system is running, such as to change CPU frequency on-line. I will try to find other ways. Thank you anyway.

nsp
 
Old 01-11-2007, 01:10 PM   #13
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Quote:
Originally Posted by nsp
H_TeXMeX_H,

I think that your method will work, but don't fit for me, for I am trying to change or add files while my system is running, such as to change CPU frequency on-line. I will try to find other ways. Thank you anyway.

nsp
Best way to do it is with cpufreq or cpu_freq_throttle
(uses cpufreq).
 
Old 01-12-2007, 07:14 AM   #14
nsp
Member
 
Registered: Jul 2006
Location: China
Distribution: Slackware
Posts: 68

Original Poster
Rep: Reputation: 15
Thank you, I'll try it.

Regards
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RPC: Remote system error - Permission denied verl Linux - Networking 0 09-12-2005 02:59 PM
How to identify files in /sys/bus/i2c/devices/ koyi Linux - Hardware 0 07-18-2005 01:55 AM
torsmo error scandir for /sys/bus/i2c/devices/: No such file or directory KaZiber Linux - General 2 04-17-2005 02:41 AM
Wine Alsa devices Permission Denied Protex Linux - Games 1 11-05-2003 04:29 PM
permission denied by the system anwar_lpk Linux - Networking 1 05-06-2003 03:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration