<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.thinkwiki.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Gettalong15</id>
	<title>ThinkWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.thinkwiki.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Gettalong15"/>
	<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/wiki/Special:Contributions/Gettalong15"/>
	<updated>2026-05-23T02:22:16Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.12</generator>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Automatic_Display_Switching_on_Resume&amp;diff=48693</id>
		<title>Automatic Display Switching on Resume</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Automatic_Display_Switching_on_Resume&amp;diff=48693"/>
		<updated>2010-05-31T17:25:37Z</updated>

		<summary type="html">&lt;p&gt;Gettalong15: /* Automatic Display Switching on Resume */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Automatic Display Switching on Resume =&lt;br /&gt;
&lt;br /&gt;
I have a T410s and a Mini Dock 3 Plus and wanted Ubuntu 10.04 to automatically switch to the external monitor on resume if it is connected. However, gnome-power-manager and gnome-display-manager can't do this correctly currently and therefore I have written a script to automate this.&lt;br /&gt;
&lt;br /&gt;
The following script should be saved in the file &amp;lt;tt&amp;gt;/etc/pm/sleep.d/10_activate_monitor&amp;lt;/tt&amp;gt; and does the following on resume:&lt;br /&gt;
&lt;br /&gt;
* If any external monitor is attached, activate it (the first monitor from the list &amp;lt;tt&amp;gt;EXTERNALS&amp;lt;/tt&amp;gt;), and disable the internal monitor if the lid is closed.&lt;br /&gt;
* If no external monitor is attached, activate the internal monitor.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
. /usr/share/acpi-support/power-funcs&lt;br /&gt;
&lt;br /&gt;
INTERNAL=&amp;quot;LVDS1&amp;quot;&lt;br /&gt;
EXTERNALS=&amp;quot;VGA1 HDMI1 DP1 HDMI2 HDMI3 DP2 DP3&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
case &amp;quot;$1&amp;quot; in&lt;br /&gt;
        thaw|resume)&lt;br /&gt;
		for x in /tmp/.X11-unix/*; do&lt;br /&gt;
		    displaynum=`echo $x | sed s#/tmp/.X11-unix/X##`&lt;br /&gt;
		    getXuser;&lt;br /&gt;
&lt;br /&gt;
		    grep -q closed /proc/acpi/button/lid/*/state&lt;br /&gt;
		    LID_CLOSED=$?&lt;br /&gt;
&lt;br /&gt;
		    if [ x&amp;quot;$XAUTHORITY&amp;quot; != x&amp;quot;&amp;quot; ]; then&lt;br /&gt;
		        export DISPLAY=&amp;quot;:$displaynum&amp;quot;&lt;br /&gt;
&lt;br /&gt;
		    	INTERNAL_STATE=$(xrandr | grep ^$INTERNAL | grep &amp;quot; con&amp;quot; | sed &amp;quot;s/.*connected//&amp;quot; | sed &amp;quot;s/ //&amp;quot; | sed &amp;quot;s/ .*//g&amp;quot;)&lt;br /&gt;
		    	for I in $EXTERNALS; do&lt;br /&gt;
		    		EXTERNAL=$I&lt;br /&gt;
		    		EXTERNAL_STATE=$(xrandr | grep ^$EXTERNAL | grep &amp;quot; con&amp;quot; | sed &amp;quot;s/.*connected//&amp;quot; | sed &amp;quot;s/ //&amp;quot; | sed &amp;quot;s/ .*//g&amp;quot;)&lt;br /&gt;
		    		if [ ! \( -z &amp;quot;$EXTERNAL_STATE&amp;quot; \) ]; then break; fi&lt;br /&gt;
		    	done&lt;br /&gt;
&lt;br /&gt;
		    	logger -t &amp;quot;pm-utils-custom-display&amp;quot; &amp;quot;$INTERAL -- $INTERNAL_STATE :: $EXTERNAL -- $EXTERNAL_STATE&amp;quot;&lt;br /&gt;
			if [ ! \( -z &amp;quot;$EXTERNAL_STATE&amp;quot; \) ]; then&lt;br /&gt;
				logger -t &amp;quot;pm-utils-custom-display&amp;quot; &amp;quot;Activating external display&amp;quot;&lt;br /&gt;
				if [ $LID_CLOSED = 0 ]; then xrandr --output $INTERNAL --off; fi&lt;br /&gt;
				xrandr --output $EXTERNAL --auto&lt;br /&gt;
			else&lt;br /&gt;
				logger -t &amp;quot;pm-utils-custom-display&amp;quot; &amp;quot;Activating internal display&amp;quot;&lt;br /&gt;
				xrandr --output $INTERNAL --auto&lt;br /&gt;
				xrandr --output $EXTERNAL --off&lt;br /&gt;
			fi&lt;br /&gt;
		    fi&lt;br /&gt;
		done&lt;br /&gt;
                ;;&lt;br /&gt;
        *) exit $NA&lt;br /&gt;
                ;;&lt;br /&gt;
esac&lt;br /&gt;
&lt;br /&gt;
exit 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Gettalong15</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Automatic_Display_Switching_on_Resume&amp;diff=48692</id>
		<title>Automatic Display Switching on Resume</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Automatic_Display_Switching_on_Resume&amp;diff=48692"/>
		<updated>2010-05-31T17:10:22Z</updated>

		<summary type="html">&lt;p&gt;Gettalong15: â†Created page with '= Automatic Display Switching on Resume =  I have a T410s and a Mini Dock 3 Plus and wanted Ubuntu 10.04 to automatically switch to the external monitor on resume if it is...'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Automatic Display Switching on Resume =&lt;br /&gt;
&lt;br /&gt;
I have a T410s and a Mini Dock 3 Plus and wanted Ubuntu 10.04 to automatically switch to the external monitor on resume if it is connected. However, gnome-power-manager and gnome-display-manager can't do this correctly currently and therefore I have written a script to automate this.&lt;br /&gt;
&lt;br /&gt;
The following script should be saved in the file {{/etc/pm/sleep.d/10_activate_monitor}} and does the following on resume:&lt;br /&gt;
&lt;br /&gt;
* If any external monitor is attached, activate it (the first monitor from the list {{EXTERNALS}}), and disable the internal monitor if the lid is closed.&lt;br /&gt;
* If no external monitor is attached, activate the internal monitor.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
. /usr/share/acpi-support/power-funcs&lt;br /&gt;
&lt;br /&gt;
INTERNAL=&amp;quot;LVDS1&amp;quot;&lt;br /&gt;
EXTERNALS=&amp;quot;VGA1 HDMI1 DP1 HDMI2 HDMI3 DP2 DP3&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
case &amp;quot;$1&amp;quot; in&lt;br /&gt;
        thaw|resume)&lt;br /&gt;
		for x in /tmp/.X11-unix/*; do&lt;br /&gt;
		    displaynum=`echo $x | sed s#/tmp/.X11-unix/X##`&lt;br /&gt;
		    getXuser;&lt;br /&gt;
&lt;br /&gt;
		    grep -q closed /proc/acpi/button/lid/*/state&lt;br /&gt;
		    LID_CLOSED=$?&lt;br /&gt;
&lt;br /&gt;
		    if [ x&amp;quot;$XAUTHORITY&amp;quot; != x&amp;quot;&amp;quot; ]; then&lt;br /&gt;
		        export DISPLAY=&amp;quot;:$displaynum&amp;quot;&lt;br /&gt;
&lt;br /&gt;
		    	INTERNAL_STATE=$(xrandr | grep ^$INTERNAL | grep &amp;quot; con&amp;quot; | sed &amp;quot;s/.*connected//&amp;quot; | sed &amp;quot;s/ //&amp;quot; | sed &amp;quot;s/ .*//g&amp;quot;)&lt;br /&gt;
		    	for I in $EXTERNALS; do&lt;br /&gt;
		    		EXTERNAL=$I&lt;br /&gt;
		    		EXTERNAL_STATE=$(xrandr | grep ^$EXTERNAL | grep &amp;quot; con&amp;quot; | sed &amp;quot;s/.*connected//&amp;quot; | sed &amp;quot;s/ //&amp;quot; | sed &amp;quot;s/ .*//g&amp;quot;)&lt;br /&gt;
		    		if [ ! \( -z &amp;quot;$EXTERNAL_STATE&amp;quot; \) ]; then break; fi&lt;br /&gt;
		    	done&lt;br /&gt;
&lt;br /&gt;
		    	logger -t &amp;quot;pm-utils-custom-display&amp;quot; &amp;quot;$INTERAL -- $INTERNAL_STATE :: $EXTERNAL -- $EXTERNAL_STATE&amp;quot;&lt;br /&gt;
			if [ ! \( -z &amp;quot;$EXTERNAL_STATE&amp;quot; \) ]; then&lt;br /&gt;
				logger -t &amp;quot;pm-utils-custom-display&amp;quot; &amp;quot;Activating external display&amp;quot;&lt;br /&gt;
				if [ $LID_CLOSED = 0 ]; then xrandr --output $INTERNAL --off; fi&lt;br /&gt;
				xrandr --output $EXTERNAL --auto&lt;br /&gt;
			else&lt;br /&gt;
				logger -t &amp;quot;pm-utils-custom-display&amp;quot; &amp;quot;Activating internal display&amp;quot;&lt;br /&gt;
				xrandr --output $INTERNAL --auto&lt;br /&gt;
				xrandr --output $EXTERNAL --off&lt;br /&gt;
			fi&lt;br /&gt;
		    fi&lt;br /&gt;
		done&lt;br /&gt;
                ;;&lt;br /&gt;
        *) exit $NA&lt;br /&gt;
                ;;&lt;br /&gt;
esac&lt;br /&gt;
&lt;br /&gt;
exit 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Gettalong15</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Category:T410s&amp;diff=48691</id>
		<title>Category:T410s</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Category:T410s&amp;diff=48691"/>
		<updated>2010-05-31T17:04:00Z</updated>

		<summary type="html">&lt;p&gt;Gettalong15: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{| width=&amp;quot;100%&amp;quot;&lt;br /&gt;
|style=&amp;quot;vertical-align:top&amp;quot; |&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin: 0; margin-right:10px; border: 1px solid #dfdfdf; padding: 0em 1em 1em 1em; background-color:#F8F8FF; align:right;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ThinkPad T410s ===&lt;br /&gt;
This page gives an overview of all ThinkPad T410s related topics.&lt;br /&gt;
&lt;br /&gt;
==== Machine Type ====&lt;br /&gt;
* 2901, 2904, 2912, 2924&lt;br /&gt;
&lt;br /&gt;
==== Standard Features ====&lt;br /&gt;
*One of the following [[Intel Core i5]] processors:&lt;br /&gt;
** Intel® Core™ i5-520M (2.4GHz, 3MB L2)&lt;br /&gt;
* [[Intel HD Graphics]]&lt;br /&gt;
* One of the following displays&lt;br /&gt;
** 14.1&amp;quot; TFT display with 1440x900 (WXGA+) resolution with LED backlight&lt;br /&gt;
** 14.1&amp;quot; TFT display with 1440x900 (WXGA+) resolution with LED backlight and Multitouch&lt;br /&gt;
* 2, 3 or 4GB [[PC3-8500]] memory standard upgradable to 8GB&lt;br /&gt;
* One of the follow HDD&lt;br /&gt;
** 80GB SSD 1.8&amp;quot; HDD&lt;br /&gt;
** 128GB SSD 1.8&amp;quot; HDD&lt;br /&gt;
** 120GB 5400rpm 1.8&amp;quot; SATA HDD&lt;br /&gt;
** 250GB 5400rpm 1.8&amp;quot; SATA HDD&lt;br /&gt;
* [[Ultrabay|Serial Ultrabay Slim]] with one of the following:&lt;br /&gt;
** [[Serial Ultrabay Slim DVD Burner II]]&lt;br /&gt;
* 2.0MP [[Integrated camera]] on select models&lt;br /&gt;
* [[ThinkPad Bluetooth with Enhanced Data Rate (BDC-2.1)|Bluetooth]] on select models&lt;br /&gt;
* [[Intel Gigabit Ethernet (10/100/1000) PCI-Express]]&lt;br /&gt;
* Intel HD Audio with a [[CX20585]] codec&lt;br /&gt;
* [[ExpressCard slot|ExpressCard/34 slot]]&lt;br /&gt;
* [[MiniPCI Express slot]] 1 with the following:&lt;br /&gt;
** [[Intel Centrino Advanced-N 6200]]&lt;br /&gt;
** [[Intel Centrino Advanced-N + WiMAX 6250]]&lt;br /&gt;
** [[ThinkPad 11b/g/n Wireless LAN Mini-PCI Express Adapter II]]&lt;br /&gt;
* [[MiniPCI Express slot]] 2 with one of the following:&lt;br /&gt;
** None (empty)&lt;br /&gt;
** [[Qualcomm Gobi 2000]] WWAN with GPS&lt;br /&gt;
* [[Integrated Fingerprint Reader]] on select models&lt;br /&gt;
* [[UltraNav]] (TrackPoint / Touchpad combo)&lt;br /&gt;
* [[Embedded Security Subsystem|Trusted Computing Group TPM 1.2]]&lt;br /&gt;
* [[Active Protection System]]&lt;br /&gt;
* [[Intel Active Management Technology (AMT)]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
|style=&amp;quot;vertical-align:top&amp;quot; |&lt;br /&gt;
[[Image:ThinkPadT410s.jpg|ThinkPad T410s|300px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Linux Installation ===&lt;br /&gt;
&lt;br /&gt;
* [[http://vbraun.name/cms/doku.php?id=computer:thinkpad:t410s| Installing Fedora on T410s]] ''(will import page to ThinkWiki later)''&lt;br /&gt;
&lt;br /&gt;
=== Automatic Display Switching on Resume ===&lt;br /&gt;
&lt;br /&gt;
* See [[Automatic Display Switching on Resume]]&lt;br /&gt;
&lt;br /&gt;
[[Category:T Series]]&lt;/div&gt;</summary>
		<author><name>Gettalong15</name></author>
		
	</entry>
</feed>