[ltp] More Sound Problems on Thinkpad 770z with Linux mdk| Problem
with APM (still a newbie)
James P. K. Gilb
linux-thinkpad@linux-thinkpad.org
Fri, 31 Oct 2003 15:50:40 -0800
Hi
You are probably having problems with your kernel config because
although you followed the instructions for APM, you probably need to set
other configuration settings (the default configuration when you start
make xconfig is not necessarily the configuration you are running).
For the DVD and CDRW you might check to see if SCSI was enabled (RW
drives like to be accessed through ide-scsi). Also make sure USB
support was included.
Make sure you enable vfat support in the filesystems dialog. It can be
a module (but make sure you compile in ext3 or reiserfs or whatever
filesystems you use for / and /usr).
As for setuid, use man chmod. I know, that is obvious isn't it?" :):)
I think the command you are looking for is:
chmod u+s /usr/bin/apm
Which adds setuid for the user and chmod g+s for the group (+ adds a
permission, e.g. w for write and s for setuid).
I hadn't thought of that, I have been doing su <passwd> apm -s for
suspend for some time (becuase as a user I didn't have permissions.) I
did the chmod above and it works! Hey, I answered a question and solved
one of my own problems.
BTW: Adding setuid to programs can be a dangerous thing, so use it
sparingly.
James Gilb
Analabha Roy wrote:
> Hi,
>
>
> Regarding the document in IBM's website that I was referred to to fix the sound
> problem, it also gave instructions on configuring APM in thinkpads. Now, it said to
> enable some options. They are:
>
> Enable
> Interrupt APM BIOS calls
>
> Enable
> APM BIOS support
>
> Enable
> PM at boot
>
> Enable
> Make CPU calls when idle
>
> Enable
> console blanking
>
> Enable
> Power off in shutdown
>
> Enable
> Ignore multiple suspend
>
> Enable
> Ignore multiple suspend/resume calls
>
> When I did 'make xconfig' to reconfigure my 2.4.21-0.13mdk kernel I found all but the
> last 3 options in the "general settings" and didn't find the last 3 anywhere. Anyways I
> set them to what the doc told me to and did
>
> make dep
> make clean
> make bzImage
> make modules
> make modules_install
> depmod -a
> make install
> reboot
>
> When I booted to my new kernel 2.4.21-0.13mdkcustom, all hell broke loose.
>
>
> My dvd rom drive was not detected. My usb CDRW was not detected. The fat32 partition I
> share with windows was not detected (I saw 'error: vfat not supported' during bootup), my
> Journalised ext3 partition where I keep /home was not detected. Only root partition was
> detected. X-server did not start & internet connection was not detected or set up either.
> Beleiving that I messed up the compilation, I rebooted & tried to boot to my older
> kernel thru the LILO boot menu. The kernel panicked & the bootup hung. So I reset and had
> the old kernel image etc copied from my bootable distro cd (I did not make a boot floppy
> as my Thinkpad 770z does not have a floppy drive nor any free interfaces to put one in)
>
>
> I checked in the services menu that apm is in the "enable services during boot up" list>
> I do not know the shell commands that apm needs so I used a graphical front end (klaptop)
> to access it after I booted my old kernel.
>
> In the "Power Control" widget, it said :
>
> "If you make /usr/bin/apm setuid then you will also be able to choose 'suspend' and
> 'standby' in the above dialog."
>
> I do not know how to do that.
>
> 'man setuid'
>
> gave a manual page, but when I tried to execute as root I got
>
> 'setuid not found'.
>
> Please guide me as to how do I enable suspend & standby in my laptop running on Linux
> mdk 9.1??
>
> Thanks,
> AR
>
>
> --- Charles E Taylor IV <tomalek@mindspring.com> wrote:
>
>>On Thu, 23 Oct 2003 02:14:56 -0700 (PDT)
>>Analabha Roy <aroy_802701@yahoo.com> wrote:
>>
>>["Skipping" sound on TP 770]
>>
>>
>>> I rebooted again & the same thing happened. How do I make sure that the
>>> abovementioned
>>>settings hold? Do I fiddle with sys init editor and move the execution
>>>of insmod cs4232 at an earlier runlevel?
>>
>>This may sound odd, but if you get the same problem again, don't re-run
>>sndconfig. Instead, remove the cs4232 module (rmmod) and reinsert it
>>("modprobe cs4232" should do).
>>
>>If that works, stick the lines in your /etc/rc.local file and you
>>shouldn't have any more trouble.
>>
>>--
>>--------------------------------------------------------------------
>>* Charles Taylor <tomalek@mindspring.com>
>>* Chemistry teacher, Linux enthusiast!
>>--------------------------------------------------------------------
>>* Web: http://home.mindspring.com/~charletiv/
>>--------------------------------------------------------------------
>>--
>>The linux-thinkpad mailing list home page is at:
>>http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad
>
>
>
> __________________________________
> Do you Yahoo!?
> Exclusive Video Premiere - Britney Spears
> http://launch.yahoo.com/promos/britneyspears/