4.32/Sony Vaio PCG-C1VN Suspend Issue

Using applications, configuring, problems
Post Reply
Message
Author
jakfish
Posts: 762
Joined: Fri 18 Jul 2008, 19:09

4.32/Sony Vaio PCG-C1VN Suspend Issue

#1 Post by jakfish »

Despite only having 116mb RAM, this Sony Picturebook does well with 4.32. Modprobing sony_laptop allows for screen brightness and other fn keys and the use of the jogdial (the scroller dial on the right side of the machine).

The only rub is that after a return from suspend, the jogdialer fails--upon use, it freezes the machine for about 10 seconds, every time.

I've tried rmmod-ing, reinserting sony_laptop, which does not work. Without suspend, without the module sony_lapop, the jogdial will freeze in similar fashion, so it seems that the resume kills something deep in the process so that the jogdial doesn't realize that it can utilize sony_laptop

The module sonypi doesn't help, even running concurrently with sony_laptop, and sonypi doesn't allow screen brightness. sonypi works with jogdial only.

This is the shinobar suspend script:

#!/bin/sh
# suspend.sh 28sep09 by shinobar
# 12feb10 pass poweroff

# do not suspend at shutdown proccess
umount /mnt/sdb1
PS=$(ps)
echo "$PS"| grep -q "sh[ ].*poweroff" && exit

# do not suspend if usb media mounted
USBS=$(probedisk2|grep '|usb' | cut -d'|' -f1 )
for USB in $USBS
do
mount | grep -q "^$USB" && exit
done

# process before suspend
# sync for non-usb drives
ifconfig eth0 down
pccardctl eject
sync
rmmod ehci_hcd
rmmod usb_storage
rmmod uhci_hcd
rmmod usbcore

#suspend
echo -n mem > /sys/power/state

# process at recovery from suspend
pccardctl insert
modprobe ehci_hcd
modprobe usb_storage
modprobe uhci_hcd
modprobe usbcore
/etc/rc.d/rc.network restart

If I install/use acpitool .5, then "acpitool -s" will suspend, but there is no successful return from suspend--just a blank screen with a blinking cursor. The same resume failure can be produced by "echo -n mem > /sys/power/state"

Any handle to jiggle?

Many thanks,
Jake

jakfish
Posts: 762
Joined: Fri 18 Jul 2008, 19:09

#2 Post by jakfish »

Figured out a solution. For posterity's sake, or for another forlorn Picturebook user, here's the workaround.

The sony_laptop module has problems with returning from suspend, even if rmmod-ed before suspension. So blacklist sony_laptop, but insert "modprobe sonypi" in /etc/rc.local

The module sonypi will get jogdial to work, but your brightness needs sony_laptop to function. So a script such as this, perhaps tied to xbindkeys, works because it modprobes sony_laptop, utilizes it, then gets rid of it:

# /bin/sh
modprobe sony_laptop
sleep 1
echo -n 5 >/sys/class/backlight/sony/brightness
sleep 1
rmmod sony_laptop

Users can program that script to one keystroke, and another higher level of brightness to another keystroke.

Arcane to be sure, but that's what old hardware is all about :)

Jake

Post Reply