Fixing Linux Mint on Dell 7520 15R SE heating and graphics
So I’ve been struggling to get this laptop to be friendly with Linux for a while now, I seem to have found a fix to most problems online but not all in one place. So here’s my summary of getting this laptop to work with Linux Mint.
Some specifications first:
Using Linux Mint 14 “Nadia”
Dell 7520 15R SE
Intel Core i7-3632QM
AMD Radeon HD 7730M 2GB
Fan
So the problem most people notice running Linux on this laptop is that the fan is running noisily all the time. This is because the fan speed is not correctly managed by default. To fix this I mostly followed the instructions at:
http://ubuntuforums.org/showthread.php?t=842775
The specific method I used is below, credit to motin in the post above for most of the stages.
Install with:
sudo apt-get install i8kutils
Add “i8k” on a new line in /etc/modules:
sudo emacs /etc/modules
Add “options i8k force=1” on a new line in /etc/modprobe.d/options:
sudo emacs /etc/modprobe.d/options
Run:
sudo modprobe i8k force=1
Open up a new file called /etc/i8kmon.conf:
sudo emacs /etc/i8mon.conf
And save the following to it:
# Run as daemon, override with --daemon option set config(daemon) 0 # Automatic fan control, override with --auto option set config(auto) 1 # Report status on stdout, override with --verbose option set config(verbose) 1 # Status check timeout (seconds), override with --timeout option set config(timeout) 1 # Temperature thresholds: {fan_speeds low_ac high_ac low_batt high_batt} set config(0) {{-1 0} -1 55 -1 55} set config(1) {{-1 1} 45 70 45 70} set config(3) {{-1 2} 60 128 60 128} # For computer with 2 fans, use a variant of this instead: # Temperature thresholds: {fan_speeds low_ac high_ac low_batt high_batt} # set config(0) {{-1 0} -1 52 -1 65} # set config(1) {{-1 1} 41 66 55 75} # set config(2) {{-1 1} 55 80 65 85} # set config(3) {{-1 2} 70 128 75 128}
To load the i8kmon daemon automatically on startup, make a new file /etc/init.d/i8kmon:
sudo emacs /etc/init.d/i8kmon
then add the following to it:
#!/bin/sh ### BEGIN INIT INFO # Provides: i8kmon # Required-Start: # Required-Stop: # Should-Start: $local_fs # Should-Stop: $local_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Dell Inspiron fan/cpu-temperature monitor ### END INIT INFO # i8kmon Dell Inspiron fan/cpu-temperature monitor # # Written by Miquel van Smoorenburg <miquels@cistron.nl>. # Modified for Debian GNU/Linux # by Ian Murdock <imurdock@gnu.ai.mit.edu>. # # Modified for i8kutils by Karl E. Jørgensen <karl@jorgensen.com>, # Massimo Dal Zotto <dz@debian.org> and # Bradley Smith <bradsmith@debian.org> PATH=/sbin:/bin:/usr/sbin:/usr/bin . /lib/lsb/init-functions NAME=i8kmon DAEMON=/usr/bin/i8kmon PROC_I8K=/proc/i8k DESC="Dell Inspiron fan/cpu-temperature monitor" # DAM orig: "--daemon --nouserconfig" I8KMON_ARGS="--auto --daemon" PIDFILE=/var/run/$NAME.pid ENABLED=0 test -x $DAEMON || exit 5 if [ -f /etc/default/$NAME ] ; then . /etc/default/$NAME fi case "$1" in start) if [ "$ENABLED" = 0 ]; then log_warning_msg "Not starting. Disabled via /etc/default/$NAME." exit 0 fi log_daemon_msg "Starting $DESC" "$NAME" modprobe i8k >/dev/null 2>&1 || true if [ ! -f "$PROC_I8K" ]; then log_progress_msg "Could not find $PROC_I8K." log_end_msg 1 exit 1 fi start-stop-daemon --start --quiet --pidfile $PIDFILE \ --background --make-pidfile --exec $DAEMON -- $I8KMON_ARGS log_end_msg $? ;; stop) log_daemon_msg "Stopping $DESC" "$NAME" start-stop-daemon --oknodo --stop --quiet --pidfile $PIDFILE log_end_msg $? rm -f $PIDFILE ;; restart|reload|force-reload) $0 stop && sleep 2 && $0 start ;; *) echo "Usage: $0 {start|stop|restart|reload|force-reload}" >&2 exit 2 ;; esac
and that should be it!
Graphics
I haven’t managed to fix this fully yet. Currently I’m planning to try the helpful instructions provided by nyanjay at:
and the information here:
https://help.ubuntu.com/community/HybridGraphics
Currently the best bet seems to be using the default open source radeon driver rather than installing fglrx (which I’ve had trouble with). Then using vgaswitcheroo to switch between integrated and discrete graphics (these commands usually need to be run as a super user, so start with “sudo -s”)
Get vgaswitcheroo status:
cat /sys/kernel/debug/vgaswitcheroo/switch
Turn on disconnected GPU:
echo ON > /sys/kernel/debug/vgaswitcheroo/switch
Connect integrated graphics with outputs:
echo IGD > /sys/kernel/debug/vgaswitcheroo/switch
Connect discrete graphics with outputs:
echo DIS > /sys/kernel/debug/vgaswitcheroo/switch
Turn off disconnected GPU:
echo OFF > /sys/kernel/debug/vgaswitcheroo/switch
Searched all over the internet for the graphics problem and could not find a solution which works with my 7520. Currently using Open Source drivers and turned off the GPU, but suspend seems to be broken that way : it re-enables the GPU and vgaswitcheroo does not work after resume to turn of the GPU. after the second resume, the system freezes and does nothing. Same is the case with hibernate.
Were you able to find a solution to any of these problems??
Have you used mint 15 on this laptop? If yes then is it working normally? Are any of these issues resolved?
I have written a lot many times at mint forums and no solution, so I am asking you!
Thanks.
I haven’t found any solutions yet which work with suspend or hibernate.
I haven’t used Mint 15 yet but plan to soon, I have currently only used versions 13 and 14.
If I try out Mint 15 or fix any of the other problems I’ll let you know, thanks for your comment!
So i installed mint 15 today, the suspend and hibernate work completely fine although it shows an error on resume but everything is working fine. If you have turned off you AMD GPU then it will be turned on and you will have to turn of the GPU again. And Mint 15 is awesome!
Using Mint 15. Fan is running fine out of box.
whats the matter with graphics? I have installed http://wiki.cchtml.com/index.php/Ubuntu_Precise_Installation_Guide and its working great. Linux Mint 16 Petra KDE
Yes, the main problems seem to have been resolved since Mint 15. Although I still find that I need to use vgaswitcheroo to change between integrated and dedicated graphics. I haven’t yet switched to Mint 16 as cinnamon 2.0 wouldn’t work with Dropbox.
How well does Mint 16 work out of the box? Do you need to switch between graphics chips at any point? I find my fan still runs at full speed most of the time, even with no activity, do you have this problem?
Great tip for i8k thanks! Were you able to fix the graphics problem other than using vgaswitcheroo after all?
I’m afraid not, but it seems that others may have had more luck solving it than me. If you find a better way, please let me know!
No unfortunately I haven’t found any way to turn off the discrete GPU, I’m not even sure it’s really turned off with vgaswitcheroo. Powertop reports an active GPU so I’m not quite sure what’s happening. Do you have any way of knowing for sure that the GPU is turned off?
The only thing I was able to do was to set a “low performance” mode for the GPU to minimize its usage. You can do so by either writing:
echo low > /sys/class/drm/card1/device/power_dpm_state (http://askubuntu.com/questions/324733/how-to-enable-the-radeon-dynamic-power-management-feature-in-ubuntu-13-04)
OR:
If the radeon driver isn’t using dynamic power management (dpm) you can set a low usage profile:
echo profile > /sys/class/drm/card1/device/power_method
echo low > /sys/class/drm/card1/device/power_profile
On kernel 3.13 dpm is enabled by default so the second method doesn’t work unless you deactivate dpm.