SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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:
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?
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",...
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.
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.
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.
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.
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:
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.
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.
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).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.