VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Pages: 1 [2]

Author Topic: HowTo: Enable Suspend2 Hibernation support on VectorLinux 5.8 Standard  (Read 10128 times)

easuter

  • Global Moderator
  • Vectorian
  • *****
  • Posts: 2160
Re: HowTo: Enable Suspend2 Hibernation support on VectorLinux 5.8 Standard
« Reply #15 on: March 16, 2007, 01:43:25 pm »

Did you add yourself to the hibernate group?
Please post the contents of /etc/sudoers.
Logged

hata_ph

  • Packager
  • Vectorian
  • ****
  • Posts: 3261
  • -- Just being myself --
Re: HowTo: Enable Suspend2 Hibernation support on VectorLinux 5.8 Standard
« Reply #16 on: March 16, 2007, 06:28:45 pm »

I did add myself to the hibernate group..will paste the /etc/group soon....

Quote
#
# Sample /etc/sudoers file.  (Assumes Linux paths)
#
# ~# chown root.root /etc/sudoers
# ~# chmod 440 /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for the details on how to write a sudoers file.
#

##
# User alias specification
##
#User_Alias   FULLTIMERS=millert,mikef,dowdy
#User_Alias   PARTTIMERS=bostley,jwfox,mccreary

##
# Cmnd alias specification
##
#Cmnd_Alias     DUMPS=/usr/etc/dump,/usr/etc/rdump,/usr/etc/restore,\
#            /usr/etc/rrestore,/usr/bin/mt
#Cmnd_Alias   KILL=/bin/kill
#Cmnd_Alias   PRINTING=/usr/bin/lpc,/usr/bin/lprm
Cmnd_Alias   SHUTDOWN=/sbin/shutdown,/sbin/halt,/sbin/fasthalt,/sbin/reboot,/sbin/fastboot,/usr/libexec/xfsm-shutdown-helper
Cmnd_Alias      DIAL=/usr/bin/gkdial,/usr/X11R6/bin/xisp
Cmnd_Alias      SERVER=/opt/lampp/lampp
Cmnd_Alias      HW1=/usr/X11R6/bin/flphoto
Cmnd_Alias      HW2=/usr/X11R6/bin/qtparted
Cmnd_Alias      VASM=/sbin/vasm,/sbin/vlapt
Cmnd_Alias      MOUNT1=/lib/udev/vl-hot_mount,/lib/udev/vl-hot_umount,/bin/mount,/bin/umount,/usr/bin/disktype
Cmnd_Alias      PDMOUNT=/usr/X11/bin/mkpdmount,/usr/X11/bin/rmpdmount
Cmnd_Alias      SGMAP=/usr/bin/sg_map
Cmnd_Alias      WIFI=/sbin/iwconfig,/sbin/vwifi2,/sbin/modprobe,/usr/sbin/wifi-radar,/sbin/dhcpcd,/sbin/ifconfig
Cmnd_Alias      SMBMOUNT=/usr/bin/smbmount,/usr/bin/smbumount,/usr/bin/smbclient

#Cmnd_Alias   SHELLS=/bin/sh,/bin/csh,/bin/ksh,\
#                       /bin/tcsh,/bin/rsh,\
#                       /bin/zsh
#Cmnd_Alias   SU=/bin/su
#Cmnd_Alias   VIPW=/usr/bin/vipw,/bin/vipw,/usr/bin/passwd

##
# Host alias specification
##
#Host_Alias   SUN4=bruno,eclipse,moet,anchor
#Host_Alias   SUN3=brazil,columbine
#Host_Alias   DECSTATION=wilkinson,soma,dendrite,thang
#Host_Alias    DECALPHA=widget,thalamus,foobar
#Host_Alias   HPSNAKE=boa,nag,python
#Host_Alias   CSNETS=128.138.243.0,128.138.204.0,128.138.242.0
#Host_Alias   CUNETS=128.138.0.0/255.255.0.0

##
# User specification
##

# root and users in group wheel can run anything on any machine as any user
root      ALL=(ALL) ALL
#%wheel      ALL=(ALL) ALL

# melvin can run anything on any machine without a password
#melvin     ALL=NOPASSWD:ALL

# anyone in the group 'users' can run some programs without a password
%users          ALL=NOPASSWD:SHUTDOWN,DIAL,SERVER,HW1,MOUNT1,SGMAP,PDMOUNT,SMBMOUNT,WIFI

# anyone in the group 'users' can run some programs with a password
%users          ALL=VASM,HW2


# full time sysadmins can run anything on any machine without a password
#FULLTIMERS   ALL=NOPASSWD:ALL
# part time sysadmins may run anything except root shells or su
#PARTTIMERS   ALL=ALL,!SU,!SHELLS

# rodney may run anything except root shells or su on machines in CSNETS
#rodney      CSNETS=ALL,!SU,!SHELLS

# smartguy may run any command on any host in CUNETS (call B address)
#smartguy   CUNETS=ALL

# operator may run maintenance commands and anything in /usr/bin/
#operator   ALL=DUMPS,KILL,PRINTING,SHUTDOWN,HALT,REBOOT,/usr/bin/

# joe may su only to operator
#joe      /bin/su operator

# pete may change passwords for anyone but root
#pete      /bin/passwd [A-z]*,!/bin/passwd root

# bob may run anything except root shells or su on the sun3 and sun4 machines
#bob      SUN4=ALL,!SU,!SHELLS:\
#      SUN3=ALL,!SU,!SHELLS

# jim may run anything on machines in the biglab netgroup
#jim      +biglab=ALL

# users in the secretaries netgroup need to help manage the printers
#+secretaries   ALL=PRINTING

# fred can run /bin/ls as oracle by specifying -u oracle on command line;
# he can also run /bin/date as uid -2 without entering a password
#fred      ALL=(oracle) /bin/ls,(#-2) NOPASSWD:/bin/date

# somedude may su to anyone but root and must give su an argument
#somedude   ALL=/bin/su ?*, !/bin/su root

#Allow users to access the Suspend2 hibernate script:
%hibernate      ALL=(root)     NOPASSWD: /usr/sbin/hibernate

EDIT:

Found out that I problem with the shutdown issue in XFCE is due to something wrong with the sudo. After I remove the newly added command regarding Suspend2 script all back to normal...
« Last Edit: March 17, 2007, 04:25:03 am by hata_ph »
Logged

easuter

  • Global Moderator
  • Vectorian
  • *****
  • Posts: 2160
Re: HowTo: Enable Suspend2 Hibernation support on VectorLinux 5.8 Standard
« Reply #17 on: March 18, 2007, 04:21:47 am »

Hmm...thats weird. I don't have my Suspend2 setup anymore, so I can't verify why you're having that problem.
I will do another Suspend2 build next week and see what happens.

Sorry about that  :-[
« Last Edit: March 18, 2007, 06:09:37 am by easuter »
Logged

hata_ph

  • Packager
  • Vectorian
  • ****
  • Posts: 3261
  • -- Just being myself --
Re: HowTo: Enable Suspend2 Hibernation support on VectorLinux 5.8 Standard
« Reply #18 on: March 18, 2007, 06:20:12 am »

is ok.....at least the hibernate function work for me...I just need to open a terminal and type "hibernate -v 3" to hibernate my laptop.......

btw, if I want to remove the kernel-2.6.19.7 that I just build, how do I do it?

Quote
this kernel has the suspend2 patch
http://vectorlinux.osuosl.org/veclinux-5.8/kernels/kernel-2.6.20.1-i586-1vl58.tlz
http://vectorlinux.osuosl.org/veclinux-5.8/kernels/kernel-modules-2.6.20.1-i586-1vl58.tlz
http://vectorlinux.osuosl.org/veclinux-5.8/kernels/kernel-src-2.6.20.1-noarch-1vl58.tlz

kernel-2.6.20.1 doesn't work for me because this kernel doesn't detect my battery.....look like ACPI is not working for me.............
Logged

easuter

  • Global Moderator
  • Vectorian
  • *****
  • Posts: 2160
Re: HowTo: Enable Suspend2 Hibernation support on VectorLinux 5.8 Standard
« Reply #19 on: March 18, 2007, 08:34:36 am »

To remove the 2.6.19.7 kernel you built do the following:

Code: [Select]
cd /boot
rm config config-2.6.19.7_suspend2 vmlinuz vmlinuz-2.6.19.7_suspend2 System.map System.map-2.6.19.7_suspend2
rm -rf /lib/modules/2.6.19.7
rm -rf /usr/src/linux-2.6.19.7

After that dont forget to remake the old symlinks to kernel 2.6.18.5 (still in the /boot directory):

Code: [Select]
ln -sf config-2.6.18.5 config
ln -sf vmlinuz-2.6.18.5 vmlinuz
ln -sf System.map-2.6.18.5 System.map

Then you need to fix lilo.conf and rerun lilo.
Logged

hata_ph

  • Packager
  • Vectorian
  • ****
  • Posts: 3261
  • -- Just being myself --
Re: HowTo: Enable Suspend2 Hibernation support on VectorLinux 5.8 Standard
« Reply #20 on: March 18, 2007, 10:28:07 am »

thanks.....
but in the /boot there is no config and System.map
just have config-2.6.19.7_suspend2, config-2.6.18.5, System.map-2.6.19.7_suspend2 and System.map-2.6.18.5
only have a vmlinuz which is a symlink to vmlinuz-2.6.18.5
is that normal?

PS: I didn't point the vmlinuz to the 2.6.19.7 vmlinuz, I just create another kernel selection in lilo
Logged

easuter

  • Global Moderator
  • Vectorian
  • *****
  • Posts: 2160
Re: HowTo: Enable Suspend2 Hibernation support on VectorLinux 5.8 Standard
« Reply #21 on: March 18, 2007, 11:56:27 am »

Quote
PS: I didn't point the vmlinuz to the 2.6.19.7 vmlinuz, I just create another kernel selection in lilo

Thats also fine.
The way its mentioned in the HowTo is only one of the possible ways of doing things.
Logged

greg

  • Member
  • *
  • Posts: 1
Re: HowTo: Enable Suspend2 Hibernation support on VectorLinux 5.8 Standard
« Reply #22 on: April 11, 2007, 01:54:13 am »

Hi, i'm a new user of vl5.8 standard, i'm trying to add suspend2 to my system, but i have some troubles. Compaq Presario 1245 AMD K6@333Mhz, 160Mb RAM, swap: /dev/hda1 - 400Mb, root - /dev/hda2 reiserfs. I tried this kernels:
http://ftp-osl.osuosl.org/pub/vectorlinux/veclinux-5.8/kernels/kernel-2.6.20.6-i586-1vl58.tlz
http://ftp-osl.osuosl.org/pub/vectorlinux/veclinux-5.8/kernels/kernel-modules-2.6.20.6-i586-1vl58.tlz
and
http://vectorlinux.osuosl.org/veclinux-soho-current/testing/kernel/kernel-2.6.20.1-i586-1vl58.tlz
http://vectorlinux.osuosl.org/veclinux-soho-current/testing/kernel/kernel-modules-2.6.20.1-i586-1vl58.tlz

but both give same error at boot:
hda: status timeout: status=0xff { Busy }
ide: failed opcode was: unknown
hda: drive not ready for command
ide0: reset timed-out, status=0xe1
hda: status timeout: status=0xe1 { Busy }
ide: failed opcode was: unknown
hda: drive not ready for command
ide0: reset timed-out, status=0xe1
end_request: I/O error, dev hda, sector 585916
.................. some errors about file systems ...................
VFS: Cannot open root device "302" or unknown-block(3,2)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(3,2)

With standard kernel 2.6.18.5 all works fine (except it don't have suspend2)...

This is from my lilo.conf:
image=/boot/vmlinuz-2.6.20.6
root=/dev/hda2
label=linux-suspend2
append="resume2=swap:/dev/hda1"
read-only
initrd=/boot/initrd

Where is mistake?
Logged
Pages: 1 [2]