PDA

View Full Version : [ubuntu] Heat, touch and hibernate - Hardy Penryn MBP


feoras
August 15th, 2008, 11:47 AM
Ok. I've gone through thread after thread and sticky after wiki and feel like I've tried everything.

But no mater what I do, Hardy on my my Penryn MBP is running too hot to touch, the two finger touch doesn't work and it crashes when hibernating.

Please help me fix these last three problems.
Oh and take it easy on me because I'm not too bright.

Here's my xorg.conf


# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Emulate3Buttons" "true"
EndSection

Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/input/mice"
Option "Protocol" "auto-dev"
#Option "CorePointer"

# exclusive grabbing of device
Option "GrabEventDevice" "1"

# simulate right button
Option "MultiFingerButton" "2"

# not using edge scrolling
Option "HorizEdgeScroll" "0"
Option "VertEdgeScroll" "0"

# use two finger scrolling
Option "VertTwoFingerScroll" "1"
Option "HorizTwoFingerScroll" "1"

# set to 0 if you don't want horizontal scrolling
# scroll speed, lower is faster
Option "HorizScrollDelta" "0"
Option "VertScrollDelta" "40"

# minimum pressure motion factor
Option "PressureMotionMinZ" "10"

# touch and untouch thresholds, higher numbers
# if you like to push hard, change to 30 or 40
Option "FingerLow" "30"
Option "FingerHigh" "80"
Option "FingerPress" "256"

# palm detect
Option "PalmDetect" "1"
Option "PalmMinWidth" "10"
Option "PalmMinZ" "200"

# borders based on output from synclient
# controls the edge scrolling
# turned off by specifing the exact size /henrik
Option "LeftEdge" "0"
Option "RightEdge" "1280"
Option "TopEdge" "0"
Option "BottomEdge" "800"

# speeds, smaller number for a slower mouse
Option "MinSpeed" "0.8"
# 0.5 is very slow, 1.5 is very fast
Option "MaxSpeed" "1.2"
# up to 1.5 works ok
Option "AccelFactor" "0.10"

# tap times, change to suit your tapping habits
Option "MaxTapMove" "100"
Option "MaxTapTime" "223"
Option "MaxDoubleTapTime" "200"

# don't change these or two finger tap stops working
Option "TapButton2" "3"
Option "TapButton3" "2"
#Option "TapButton2" "0"
#Option "TapButton3" "0"

# must be commented out or normal tapping wont work
#Option "TapButton1" "0"

# not using corner buttons
Option "RTCornerButton" "0"
Option "RBCornerButton" "0"
Option "LTCornerButton" "0"
Option "LBCornerButton" "0"

# needed for disabled while typing fix
Option "SHMConfig" "true"

EndSection
Section "Device"
Identifier "Configured Video Device"
EndSection

Section "Monitor"
Identifier "Configured Monitor"
EndSection

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
EndSection

Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Synaptics Touchpad"
EndSection


Thanks in advance for your wisdom.

cyberdork33
August 15th, 2008, 12:10 PM
For the touchpad, you need to get the new touchpad kernel driver...
as noted in the Penryn wiki page:
https://wiki.ubuntu.com/MacBookPro/Penryn

Try it without all the options that you have in your xorg.conf and if what you expect still is not working, please explain exactly what functionality you are trying to enable.

Hibernation is not great on any Mac... Do you have a swap partition? is it large enough for your RAM?

feoras
August 15th, 2008, 02:25 PM
Thanks for the pointers cyberdork33.

I had already followed the wiki and installed the drivers like you suggested but it doesn't work. That's why I need help.

The problem I have with the touchpad is with two finger scrolling and two finger and single finger tapping.

I will check out the swap disk. I let ubuntu decide how to partition during install so I don't know off hand.

Thanks again

cyberdork33
August 15th, 2008, 03:43 PM
The problem I have with the touchpad is with two finger scrolling and two finger and single finger tapping.There is a section in the original driver thread about issues with the two-finger scrolling. You might have a look through there.

What do you mean by "two-finger tapping"? Do you mean tapping two fingers on the pad or do you mean holding two fingers on the pad and clicking the button?

For two-finger tapping, all you need is the following:
Option "TapButton1" "1"
Option "TapButton2" "3"
Option "TapButton3" "2"This literally means one-finger tap = left mouse button (button 1)
two-finger tap = right mouse button (button 3)
three-finger tap = middle mouse button (button 2)


I will check out the swap disk. I let ubuntu decide how to partition during install so I don't know off hand.It should be ok then. It is likely related to something else, unfortunately, I can't help in that area.

hajk
August 18th, 2008, 12:54 PM
...no mater what I do, Hardy on my my Penryn MBP is running too hot to touch...I hesitate to answer this post as I run Ubuntu Hardy only in a VMware Fusion VM on my 15" 4,1 Penryn MBP, whereas I've installed Debian Lenny (testing) a week ago directly to the internal HD (dual-booting with Mac OS X). I consider Debian Lenny right now closer to Ubuntu Intrepid Ibex than to Hardy Heron, so my experience may help you if/once you switch to Ibex...

OK, I installed Lenny with the current 2.6.25 kernel, and pretty much followed the instructions on the Ubuntu Wiki for the MBP. Machine ran HOT, the sensors-applet showed 55 degrees C for the processor cores and 45 degrees C for the HD -- the base being too hot to touch very long. Now, a few days ago I switched to the 2.6.26 kernel from Debian unstable, that's all I did, and now processors and HD seldom get above 39 degrees C. That's nicely warm to the touch, not hot. I can't explain this, may be something to do with kernel modules? The CPU Frequency scaling monitor shows that the processors run at 33% of rated speed most of the time (but they showed that also before I switched kernels).

For comparison, here's my output from lsmod
Module Size Used by
aes_x86_64 12416 2
aes_generic 32552 1 aes_x86_64
rt73 197504 0
arc4 6272 2
ecb 7296 2
crypto_blkcipher 21636 1 ecb
rt73usb 29696 0
crc_itu_t 6528 1 rt73usb
rt2x00usb 15744 1 rt73usb
rt2x00lib 30208 2 rt73usb,rt2x00usb
rfkill 11168 1 rt2x00lib
led_class 8968 1 rt2x00lib
input_polldev 8720 1 rt2x00lib
mac80211 162864 2 rt2x00usb,rt2x00lib
cfg80211 30224 2 rt2x00lib,mac80211

coretemp 11008 0
binfmt_misc 13580 1
nvidia 8105072 26
rfcomm 38176 2
l2cap 23936 9 rfcomm
ppdev 11656 0
parport_pc 31016 0
lp 14724 0
parport 41776 3 ppdev,parport_pc,lp
ipv6 288200 22

acpi_cpufreq 11792 1
cpufreq_userspace 8452 0
cpufreq_stats 9120 0
cpufreq_powersave 6400 0
cpufreq_ondemand 11792 1
freq_table 9344 3 acpi_cpufreq,cpufreq_stats,cpufreq_ondemand
cpufreq_conservative 11784 0

loop 19468 0
snd_pcsp 14588 0
snd_hda_intel 434776 2
snd_pcm_oss 41760 0
snd_pcm 81800 3 snd_pcsp,snd_hda_intel,snd_pcm_oss
snd_mixer_oss 18816 1 snd_pcm_oss
snd_seq_dummy 7428 0
snd_seq_oss 33152 0
snd_seq_midi 11072 0
snd_rawmidi 26784 1 snd_seq_midi
snd_seq_midi_event 11904 2 snd_seq_oss,snd_seq_midi
uvcvideo 55432 0
snd_seq 54304 6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_m
idi_event
compat_ioctl32 12288 1 uvcvideo
videodev 35840 2 uvcvideo,compat_ioctl32
snd_timer 25744 2 snd_pcm,snd_seq
v4l1_compat 17284 2 uvcvideo,videodev
i2c_i801 13596 0
snd_seq_device 11668 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmi
di,snd_seq
hci_usb 18460 2
i2c_core 27936 2 nvidia,i2c_i801
iTCO_wdt 15696 0
snd 63688 14 snd_pcsp,snd_hda_intel,snd_pcm_oss,snd_pcm,snd_
mixer_oss,snd_seq_oss,snd_rawmidi,snd_seq,snd_time r,snd_seq_device
soundcore 12064 1 snd
bluetooth 57124 7 rfcomm,l2cap,hci_usb
snd_page_alloc 13072 2 snd_hda_intel,snd_pcm
video 24084 4
output 7808 1 video
battery 12032 0
ac 8192 0
button 11680 0
intel_agp 31728 0
evdev 14208 11
jfs 157904 1
nls_base 12932 1 jfs
usbhid 45792 0
hid 41792 1 usbhid
ff_memless 9224 1 usbhid
ide_cd_mod 36360 0
cdrom 37928 1 ide_cd_mod
sd_mod 29376 3
piix 12424 0 [permanent]
ide_pci_generic 9220 0 [permanent]
ata_piix 22660 3
ide_core 128284 3 ide_cd_mod,piix,ide_pci_generic
ohci1394 32564 0
ieee1394 93816 1 ohci1394
ata_generic 10116 0
libata 165472 2 ata_piix,ata_generic
scsi_mod 160760 2 sd_mod,libata
dock 14112 1 libata
sky2 48004 0
ssb 43140 0
pcmcia 38680 1 ssb
pcmcia_core 41508 2 ssb,pcmcia
firmware_class 12544 3 rt73,rt2x00lib,pcmcia
ehci_hcd 36108 0
uhci_hcd 25760 0

thermal 22688 0
processor 42304 4 acpi_cpufreq,thermal
fan 9352 0
thermal_sys 17728 4 video,thermal,processor,fan
The first group of entries relate to the Linksys WUSB54GC wireless adapter, since I can't get ndiswrapper to play nice with WPA2 Personal security. The rt73usb kernel module has had problems in the past with slow connections, but version with 2.6.26 kernel works perfectly.

There's a group of entries relating to cpufreq-utils, showing ondemand being active. Towards the end, I see a group of modules that relate to processor temperature and fan control.

Compare this with your own setup and report back on differences, if any. Then we'll take it from there.