{"id":612,"date":"2018-10-31T11:43:09","date_gmt":"2018-10-31T11:43:09","guid":{"rendered":"http:\/\/www.vacuum-tube.eu\/wp\/?p=612"},"modified":"2018-11-05T15:36:04","modified_gmt":"2018-11-05T15:36:04","slug":"revitalizing-old-thinkpadedge-11-laptop","status":"publish","type":"post","link":"https:\/\/www.vacuum-tube.eu\/wp\/?p=612","title":{"rendered":"Revitalization of the Old Lenovo ThinkPad Edge 11 Laptop"},"content":{"rendered":"<h3>Preface<\/h3>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.vacuum-tube.eu\/wp\/wp-content\/uploads\/articles\/Lenovo-ThinkPad-Edge11.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-647 alignleft\" title=\"Lenovo-ThinkPad-Edge11\" src=\"https:\/\/www.vacuum-tube.eu\/wp\/wp-content\/uploads\/articles\/Lenovo-ThinkPad-Edge11-300x225.jpg\" width=\"300\" height=\"225\" srcset=\"https:\/\/www.vacuum-tube.eu\/wp\/wp-content\/uploads\/articles\/Lenovo-ThinkPad-Edge11-300x225.jpg 300w, https:\/\/www.vacuum-tube.eu\/wp\/wp-content\/uploads\/articles\/Lenovo-ThinkPad-Edge11-150x113.jpg 150w, https:\/\/www.vacuum-tube.eu\/wp\/wp-content\/uploads\/articles\/Lenovo-ThinkPad-Edge11-768x576.jpg 768w, https:\/\/www.vacuum-tube.eu\/wp\/wp-content\/uploads\/articles\/Lenovo-ThinkPad-Edge11-1024x768.jpg 1024w, https:\/\/www.vacuum-tube.eu\/wp\/wp-content\/uploads\/articles\/Lenovo-ThinkPad-Edge11-400x300.jpg 400w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>I have an old laptop &#8211; Lenovo ThinkPad Edge 11, manufactured between 2011-2013, which I use about 6 weeks in a year. With recent OS it becomes a slowpoke, even with 500GB 7200RPM hard drive. so I run into dilemma &#8211; what to do next, replace or upgrade. Basically laptop is very good, excellent keyboard, good ergonomics, satisfactory screen. Intel Dual Core i3 380UM 1.3GHz by no means is a speed demon, yet it is not a main bottleneck. Since it is rarely used, I opted for 2nd option.<\/p>\n<h3>Hard Drive Replacement<\/h3>\n<p>Rotating hard drive is a main bottleneck in most today&#8217;s PC systems. From my past experience replacement of conventional hard drive with SSD turns old PC into a new one for conventional everyday tasks, not involving massive 3D graphics, 4K ultra HD video or CPU\/GPU intensive rendering. For this laptop I&#8217;m bought el-cheapo KingSpec 512GB TLC SSD from Aliexpress (priced at 70 Euro with shipping in September 2018). In the past, when purchasing laptop, I selected the one not with only satisfactory technical specification and affordable price, but also which can be easily disassembled. Installing new SSD involved only removing only few screws and pulling out bottom plate (see photos).<br \/>\n<strong><span style=\"color: #993300;\">I run some speed tests:<\/span><\/strong><br \/>\nSuSE Linux Tumblweed 64bit (October 2018 snapshot) startup with MATE desktop;<br \/>\nlaunch of LibreOffice with large spreadsheet;<br \/>\nlaunch of LTSpice electronic circuit simulator under WINE;<br \/>\nstartup of Windows 7 under VirtualBox emulator.<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/youtu.be\/YT8Co1ObqSs\" target=\"_blank\" rel=\"noopener\">YouTube video<\/a> can be seen <a href=\"https:\/\/youtu.be\/YT8Co1ObqSs\" target=\"_blank\" rel=\"noopener\">here<\/a>.<\/p>\n<p style=\"text-align: justify;\">Tasks which were previously annoyingly time consuming now are quite snappy. Unfortunately, no one can jump higher then his own head, laptop is able to play smoothly 1080p HD videos, yet 1440p playback is choppy, 2160p turns basically into a slide show.<\/p>\n<table style=\"border-collapse: collapse; width: 87.3256%; height: 478px;\" border=\"1\">\n<tbody>\n<tr style=\"height: 24px;\">\n<td style=\"width: 100%; text-align: center; height: 24px;\"><strong>Lenovo ThinkPad Edge 11 opened and with old hard drive removed<br \/>\n<\/strong><\/td>\n<\/tr>\n<tr style=\"height: 595px;\">\n<td style=\"width: 100%; height: 454px;\"><a href=\"https:\/\/www.vacuum-tube.eu\/wp\/wp-content\/uploads\/articles\/Lenovo-ThinkPad-Edge11-IMG_2328.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-648 size-large\" title=\"Lenovo-ThinkPad-Edge11-IMG_2328\" src=\"https:\/\/www.vacuum-tube.eu\/wp\/wp-content\/uploads\/articles\/Lenovo-ThinkPad-Edge11-IMG_2328-1024x768.jpg\" alt=\"\" width=\"640\" height=\"480\" srcset=\"https:\/\/www.vacuum-tube.eu\/wp\/wp-content\/uploads\/articles\/Lenovo-ThinkPad-Edge11-IMG_2328-1024x768.jpg 1024w, https:\/\/www.vacuum-tube.eu\/wp\/wp-content\/uploads\/articles\/Lenovo-ThinkPad-Edge11-IMG_2328-150x113.jpg 150w, https:\/\/www.vacuum-tube.eu\/wp\/wp-content\/uploads\/articles\/Lenovo-ThinkPad-Edge11-IMG_2328-300x225.jpg 300w, https:\/\/www.vacuum-tube.eu\/wp\/wp-content\/uploads\/articles\/Lenovo-ThinkPad-Edge11-IMG_2328-768x576.jpg 768w, https:\/\/www.vacuum-tube.eu\/wp\/wp-content\/uploads\/articles\/Lenovo-ThinkPad-Edge11-IMG_2328-400x300.jpg 400w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>Activating BFQ scheduler<\/h3>\n<p><span style=\"color: #008000;\"><strong>BFQ (budget fair queuing)<\/strong><\/span> kernel scheduler allows much better GUI response under heavy IO loads, especially on relatively slow\/old systems. This is done by means of assigning certain budget to the amount of traffic to each block device within each scheduling cycle. Algorithm is pretty complex and smart, details go beyond scope of this article. Here is how to activate it on Linux system.<br \/>\n1) Add <span style=\"color: #008000;\"><strong>scsi_mod.use_blk_mq=1<\/strong><\/span> to the kernel boot parameters.<br \/>\n2) Create\/edit config file <span style=\"color: #008000;\"><strong>\/etc\/udev\/rules.d\/61-bfq-scheduler.rules<\/strong><\/span><\/p>\n<pre class=\"bbcode_code\"><code><span style=\"font-size: 12px;\">### Rule start ###\r\n#SSD\r\nACTION==\"add|change\", KERNEL==\"sd[a-z]\", ATTR{queue\/rotational}==\"0\", ATTR{queue\/scheduler}=\"bfq\"<\/span>\r\n<span style=\"font-size: 12px;\">#Rotating\r\nACTION==\"add|change\", KERNEL==\"sd[a-z]\", ATTR{queue\/rotational}==\"1\", ATTR{queue\/scheduler}=\"bfq\"\r\n### Rule end ###<\/span><\/code><\/pre>\n<p>3) Restart system. Run this in terminal as root:<\/p>\n<p class=\"bbcode_code\"><code><span style=\"font-size: 12px;\">cat \/sys\/block\/sdxxx\/queue\/scheduler<\/span><\/code><br \/>\nIf everything is OK, then output will look like this:<br \/>\n<span style=\"font-size: 12px;\"><code>mq-deadline kyber [bfq] none<\/code><\/span><\/p>\n<p>For SuSE Linux in particular full article available <a href=\"https:\/\/forums.opensuse.org\/showthread.php\/526806-How-can-I-use-BFQ-IO-scheduler-w-4-12\">here<\/a>.<\/p>\n<h3>Reconditioning Battery<\/h3>\n<p style=\"text-align: justify;\">Battery was almost dead, with only 45 minutes of useful time. Original batteries still available but are old (stocked for many years) and expensive, Chinese replacements from eBay and Aliexpress had questionable quality, so I opened battery cage and found industry standard 6 pcs of 18650 Li-ion elements (18650 means form-factor &#8211; diameter 18mm, length 65mm). These were replaced with higher capacity Samsung INR18650-35E 3500mAh 3.7V which in a pack of 6 could yield 77.8 W\/h.<br \/>\n<a href=\"https:\/\/www.vacuum-tube.eu\/wp\/wp-content\/uploads\/articles\/Lenovo-ThinkPad-Edge11-IMG_2288.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-medium wp-image-634\" title=\"Lenovo-ThinkPad-Edge11-IMG_2288\" src=\"https:\/\/www.vacuum-tube.eu\/wp\/wp-content\/uploads\/articles\/Lenovo-ThinkPad-Edge11-IMG_2288-300x225.jpg\" width=\"300\" height=\"225\" srcset=\"https:\/\/www.vacuum-tube.eu\/wp\/wp-content\/uploads\/articles\/Lenovo-ThinkPad-Edge11-IMG_2288-300x225.jpg 300w, https:\/\/www.vacuum-tube.eu\/wp\/wp-content\/uploads\/articles\/Lenovo-ThinkPad-Edge11-IMG_2288-150x113.jpg 150w, https:\/\/www.vacuum-tube.eu\/wp\/wp-content\/uploads\/articles\/Lenovo-ThinkPad-Edge11-IMG_2288-768x576.jpg 768w, https:\/\/www.vacuum-tube.eu\/wp\/wp-content\/uploads\/articles\/Lenovo-ThinkPad-Edge11-IMG_2288-1024x768.jpg 1024w, https:\/\/www.vacuum-tube.eu\/wp\/wp-content\/uploads\/articles\/Lenovo-ThinkPad-Edge11-IMG_2288-400x300.jpg 400w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>This was quite tedious task, cage had to be opened with sharp blade. Batteries are connected with wires and metal ribbon, soldered with spot weld. Without spot weld machine in my workshop, Li-ion elements need to be soldered very very quickly, otherwise they will be damaged with overheating. Hint &#8211; use high-quality efficient no-clean liquid flux like ChipQuik in squeeze battle or syringe.<br \/>\nGood news &#8211; battery working. Bad news &#8211; it is not working as expected. <span style=\"color: #ff0000;\"><strong>Even after re-calibration with Lenovo utility, OS still recognizes old 57W\/h capacity instead of new 77.8 W\/h<\/strong><\/span>. Battery has EPROM chip inside which theoretically could be re-programmed and re-flashed, yet it simply wasn&#8217;t worth in this case. In short &#8211; with continuous (endless loop, maximum screen brightness) VideoLAN video playback battery life is about 2 hours 30 minutes. With lower CPU\/GPU load it will probably extend to 3.5 hours.<\/p>\n<h3>Hacking Linux OS into New Battery Capacity<\/h3>\n<p>I did some measures in order to trick SuSE Linux Leap 15 to see new battery capacity. Battery related values are now stored in \/sys\/class\/power_supply\/BATx (where BATx may be BAT0 or BAT1 depending on your system).<\/p>\n<pre><span style=\"font-size: 12px;\"><code>cat \/sys\/class\/power_supply\/BAT0\/capacity_full_design<\/code><\/span><\/pre>\n<p>will show your battery capacity. There are no corresponding \/etc\/systcl.conf values, so logical solution would be (as root):<\/p>\n<pre><span style=\"font-size: 12px;\"><code>chmod u+w \/sys\/class\/power_supply\/BAT0\/capacity_full_design\r\necho 77800000 &gt; \/sys\/class\/power_supply\/BAT0\/capacity_full_desig<\/code><\/span>n<\/pre>\n<p>Unfortunately, it doesn&#8217;t work, write permissions denied, even <span style=\"color: #008000;\"><strong>chattr<\/strong> <\/span>can&#8217;t be used:<\/p>\n<p>lsattr: Inappropriate ioctl for device While reading flags on<\/p>\n<p>Following advices on forums, tried to change this with udev values. Wrote udev rules in <span style=\"color: #008000;\"><strong>\/etc\/udev\/rules.d<\/strong><\/span><\/p>\n<pre><span style=\"font-size: 12px;\"><code>ACTION==\"add|change\", KERNEL==\"BAT*\", SUBSYSTEM==\"power_supply\", ATTR{energy_full_design}=\"*\", MODE=\"0664\"\r\nACTION==\"add|change\", KERNEL==\"BAT*\", SUBSYSTEM==\"power_supply\", ATTR{energy_full_design}=\"77800000\"<\/code><\/span><\/pre>\n<p>then run<\/p>\n<pre><span style=\"font-size: 12px;\"><code>udevadm control --reload; udevadm trigger; cat \/sys\/class\/power_supply\/BAT0\/energy_full_design<\/code> <\/span><\/pre>\n<pre><span style=\"font-size: 12px;\"><code>47520000 # still old value<\/code><\/span><\/pre>\n<p>Tested what went wrong:<\/p>\n<pre><span style=\"font-size: 12px;\"><code>udevadm test \/sys\/devices\/LNXSYSTM:00\/LNXSYBUS:00\/PNP0C0A:00\/power_supply\/BAT0\r\n---&gt;\r\nATTR '\/sys\/devices\/LNXSYSTM:00\/LNXSYBUS:00\/PNP0C0A:00\/power_supply\/BAT0\/energy_full_design' writing '77800000' \/etc\/udev\/rules.d\/62-adjust-battery-capacity.rules:5\r\nerror opening ATTR{\/sys\/devices\/LNXSYSTM:00\/LNXSYBUS:00\/PNP0C0A:00\/power_supply\/BAT0\/energy_full_design} for writing: Permission denied<\/code><\/span><\/pre>\n<p>OK, possibly it is fixable if udev rules will be loaded into initramfs. Included my custom udev rules into initramfs, edited <span style=\"color: #008000;\"><strong>\/etc\/dracut.conf.d\/my-udev-battery.conf<\/strong><\/span><\/p>\n<pre><span style=\"font-size: 12px;\"><code>install_items+=\"\/etc\/udev\/rules.d\/62-adjust-battery-capacity.rules\u201d<\/code><\/span><\/pre>\n<p>its there &#8211; &#8220;<span style=\"color: #008000;\"><strong>dracut -vf<\/strong><\/span>&#8221; logs succesful inclusion. Unfortunately<\/p>\n<pre><span style=\"font-size: 12px;\"><code>cat \/sys\/class\/power_supply\/BAT0\/energy_full<\/code><\/span><\/pre>\n<p>still displays old value. Even tried to add grub boot parameter <span style=\"color: #008000;\"><strong>power_supply.energy_full_design=77800000<\/strong><\/span>, no luck.<br \/>\nRunning out of known options, I left this culprit as is with old battery capacity as is.<br \/>\nIf someone knows a solution, please e-mail to<a href=\"https:\/\/www.vacuum-tube.eu\/wp\/wp-content\/uploads\/common\/feedback.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-291 alignnone\" title=\"feedback\" src=\"https:\/\/www.vacuum-tube.eu\/wp\/wp-content\/uploads\/common\/feedback.png\" width=\"185\" height=\"19\" srcset=\"https:\/\/www.vacuum-tube.eu\/wp\/wp-content\/uploads\/common\/feedback.png 185w, https:\/\/www.vacuum-tube.eu\/wp\/wp-content\/uploads\/common\/feedback-150x15.png 150w\" sizes=\"auto, (max-width: 185px) 100vw, 185px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Preface <\/p>\n<p style=\"text-align: justify;\">I have an old laptop &#8211; Lenovo ThinkPad Edge 11, manufactured between 2011-2013, which I use about 6 weeks in a year. With recent OS it becomes a slowpoke, even with 500GB 7200RPM hard drive. so I run into dilemma &#8211; what to do next, replace or upgrade. Basically laptop is very <span style=\"color:#777\"> . . . &rarr; Read More: <a href=\"https:\/\/www.vacuum-tube.eu\/wp\/?p=612\">Revitalization of the Old Lenovo ThinkPad Edge 11 Laptop<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[17,16,14,26,27,15,13,28],"class_list":["post-612","post","type-post","status-publish","format-standard","hentry","category-linuxguru","tag-bfq-scheduler","tag-laptop-battery-reconditioning","tag-lenovo-thinkpad","tag-libreoffice","tag-ltspice","tag-ssd","tag-suse-linux","tag-virtualbox","odd"],"_links":{"self":[{"href":"https:\/\/www.vacuum-tube.eu\/wp\/index.php?rest_route=\/wp\/v2\/posts\/612","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vacuum-tube.eu\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vacuum-tube.eu\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vacuum-tube.eu\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vacuum-tube.eu\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=612"}],"version-history":[{"count":0,"href":"https:\/\/www.vacuum-tube.eu\/wp\/index.php?rest_route=\/wp\/v2\/posts\/612\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.vacuum-tube.eu\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=612"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vacuum-tube.eu\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=612"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vacuum-tube.eu\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=612"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}