<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Laptop on Natenoms Blog</title><link>https://natenom.de/tags/laptop/</link><description>Recent content in Laptop on Natenoms Blog</description><generator>Hugo -- gohugo.io</generator><language>de</language><copyright/><lastBuildDate>Thu, 24 Jan 2019 07:13:12 +0000</lastBuildDate><atom:link href="https://natenom.de/tags/laptop/index.xml" rel="self" type="application/rss+xml"/><item><title>Neue Hardware – Thinkpad x201 ersetzt durch Thinkpad x250</title><link>https://natenom.de/2019/01/neue-hardware-thinkpad-x201-ersetzt-durch-thinkpad-x250/</link><pubDate>Thu, 24 Jan 2019 07:13:12 +0000</pubDate><guid>https://natenom.de/2019/01/neue-hardware-thinkpad-x201-ersetzt-durch-thinkpad-x250/</guid><description><![CDATA[<p>Anfang 2015 kauft kaufte ich ein <a  href="/2015/03/kleines-thinkpad-als-dauerhafter-ersatz-fuer-meinen-alten-desktop-pc/">gebrauchtes Thinkpad x201</a> und ersetzte damit meinen Desktop-PC, den ich seitdem nur noch wenige Male nutzte.</p>
<p>Doch die Hardware ist schon ziemlich in die Jahre gekommen und so habe ich mich schon seit einigen Monaten nach einem neuen Thinkpad aus der X-Reihe umgesehen. Fündig wurde ich vor ein paar Tagen.</p>]]></description><content:encoded><![CDATA[<p>Anfang 2015 kauft kaufte ich ein <a  href="/2015/03/kleines-thinkpad-als-dauerhafter-ersatz-fuer-meinen-alten-desktop-pc/">gebrauchtes Thinkpad x201</a> und ersetzte damit meinen Desktop-PC, den ich seitdem nur noch wenige Male nutzte.</p>
<p>Doch die Hardware ist schon ziemlich in die Jahre gekommen und so habe ich mich schon seit einigen Monaten nach einem neuen Thinkpad aus der X-Reihe umgesehen. Fündig wurde ich vor ein paar Tagen.</p>
<p>Mein neues Laptop ist ein <a  class='urlextern'  href="https://thinkwiki.de/X250">x250</a> mit 8GB RAM, USB 3.0, einer CPU, die sehr viel schneller ist als jene im <a  class='urlextern'  href="https://thinkwiki.de/X201">x201</a> und vor allem mit einer Grafikeinheit, mit der man auch mal ein einfaches Spiel starten kann. Mit der Grafikeinheit des x201 geht das gar nicht, es gab nicht einmal mehr Unterstützung für Vulkan.</p>
<p>Der Übergang war einfach. Festplatte aus dem x201 ausgebaut, in den x250 eingebaut und fertig.</p>
<p>Beim Kauf hatte ich Glück, denn das gebrauchte x250 hat eine UMTS-Karte, einen SmartCard-Reader und vor allem ein Akku, der laut Systeminfo noch eine Restkapazität von 87 Prozent hat. Der Akku meines alten x201 hatte nur noch eine Kapazität von 49 Prozent und hielt nur noch etwa 2,x Stunden. Zusätzlich habe ich noch für wenig Geld eine Dockingstation gekauft, die „Pro Dock 40A1“.</p>
<p>Ich könnte mir vorstellen, den alten x201 unterwegs fürs Mappen (<a  href="/tags/openstreetmap/">OpenStreetMap</a>) zu verwenden, denn ich besitze dafür noch einen zweiten Akku und in dem Laptop steckt jetzt eine 128GB SSD, die ich aus dem „neuen“ Laptop ausgebaut habe.</p>
<p>Hoffentlich reicht mir das neue x250 für weitere vier Jahre oder mehr aus.</p>
<p>So sieht das neue x250 aus:</p>
 <figure class="image-caption"><a href="x250-cover.jpg"><picture><source type="jpeg" srcset="/2019/01/neue-hardware-thinkpad-x201-ersetzt-durch-thinkpad-x250/x250-cover.jpg" />
			         <img alt="" src="/2019/01/neue-hardware-thinkpad-x201-ersetzt-durch-thinkpad-x250/x250-cover.jpg" title="" width="500" height="471" loading="lazy" /></picture></a></figure>
<div class="shortcode-disclaimer">
    <p class="shortcode-disclaimer-h">Disclaimer</p>
    <p>
        Ich erhalte für diesen Beitrag keine Leistungen vom Unternehmen/Hersteller/Geschäft und stehe mit diesem auch nicht in Kontakt. Ich gebe hier meine Erfahrungen und/oder meine eigene Meinung wieder.
    </p>
</div>]]></content:encoded><enclosure url="https://natenom.de/2019/01/neue-hardware-thinkpad-x201-ersetzt-durch-thinkpad-x250/x250-cover.jpg" length="32350" type="image/jpeg"/></item><item><title>Prevent your laptop from sleep/suspend while something important is running…</title><link>https://natenom.de/2016/09/prevent-your-laptop-from-sleepsuspend-while-something-important-is-running/</link><pubDate>Tue, 13 Sep 2016 17:39:41 +0000</pubDate><guid>https://natenom.de/2016/09/prevent-your-laptop-from-sleepsuspend-while-something-important-is-running/</guid><description><![CDATA[<h2 id="the-problem" data-numberify>The problem<a class="anchor ms-1" href="#the-problem"></a></h2>
<p>My laptop is configured to go to sleep after two minutes of being idle.</p>
<p>But it also suspends while a backup to an external disk is running :(</p>

<h2 id="the-solution" data-numberify>The solution<a class="anchor ms-1" href="#the-solution"></a></h2>
<p>The solution is to tell your system that something important is running and that it should not go to sleep/suspend or to shut down.</p>
<p>With systemd you can use the command „systemd-inhibit“. Read the man page… (man systemd-inhibit).</p>]]></description><content:encoded><![CDATA[<h2 id="the-problem" data-numberify>The problem<a class="anchor ms-1" href="#the-problem"></a></h2>
<p>My laptop is configured to go to sleep after two minutes of being idle.</p>
<p>But it also suspends while a backup to an external disk is running :(</p>

<h2 id="the-solution" data-numberify>The solution<a class="anchor ms-1" href="#the-solution"></a></h2>
<p>The solution is to tell your system that something important is running and that it should not go to sleep/suspend or to shut down.</p>
<p>With systemd you can use the command „systemd-inhibit“. Read the man page… (man systemd-inhibit).</p>
<p>Instead of starting your backup script directly you start it with:</p>
<blockquote>
<pre><code>systemd-inhibit \
--what=&quot;shutdown:sleep:idle:handle-lid-switch&quot; \
--who=&quot;My backup script&quot; \
--why=&quot;Finish the backup.&quot; \
/path/to/my/backup-script.sh
</code></pre>
</blockquote>
<p>Please note that this is a single line but I split it for better reading. Copy and paste all 5 lines.</p>
<p>You may also modify your backup script to run the backup command with systemd-inhibit.</p>

<h2 id="optional-create-an-alias" data-numberify>Optional: Create an alias<a class="anchor ms-1" href="#optional-create-an-alias"></a></h2>
<p>I created the following alias in the global shell rc to be able to use systemd-inhibit for my backup or other important stuff without the need to remember the options:</p>
<blockquote>
<pre><code>alias nosuspend='systemd-inhibit --what=&quot;shutdown:sleep:idle:handle-lid-switch&quot;'
</code></pre>
</blockquote>
<p>Usage:</p>
<blockquote>
<pre><code>user@host $ nosuspend /path/to/your/script.sh
</code></pre>
</blockquote>

<h2 id="list-inhibitions" data-numberify>List inhibitions<a class="anchor ms-1" href="#list-inhibitions"></a></h2>
<p>To get a list of inhibitions on your system use:</p>
<blockquote>
<pre>systemd-inhibit --list</pre>
</blockquote>

<h2 id="almost-perfect8230" data-numberify>Almost perfect&#8230;<a class="anchor ms-1" href="#almost-perfect8230"></a></h2>
<p>…the systemd-inhibit does only work if a command is running as root, while KDE/Plasma is running as a unprivileged user. But thats sufficient for what I want because my backup script does need root privileges. So I don’t need to „fix“ that issue for my case. Maybe later…</p>
<p>So now KDE/Plasma asks for a legitimation to go to sleep/standby and thats it.<br>
<a  href="/wp-content/uploads/2016/09/legimation_asked_to_override_blocking.png"><img loading="lazy" class="alignnone size-full wp-image-35254" src="/wp-content/uploads/2016/09/legimation_asked_to_override_blocking.png" alt="legimation_asked_to_override_blocking" srcset="/wp-content/uploads/2016/09/legimation_asked_to_override_blocking.png 503w, /wp-content/uploads/2016/09/legimation_asked_to_override_blocking-150x137.png 150w, /wp-content/uploads/2016/09/legimation_asked_to_override_blocking-300x275.png 300w" sizes="(max-width: 503px) 100vw, 503px" /></a></p>

<h2 id="read-the-docs-" data-numberify>Read the docs :)<a class="anchor ms-1" href="#read-the-docs-"></a></h2>
<p>See <a  class='urlextern'  href="https://www.freedesktop.org/wiki/Software/systemd/inhibit/">https://www.freedesktop.org/wiki/Software/systemd/inhibit/</a> if you need more information.</p>]]></content:encoded></item></channel></rss>