<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>my tech blog &#187; miscellaneous</title>
	<atom:link href="http://billauer.se/blog/category/misc/feed/" rel="self" type="application/rss+xml" />
	<link>https://billauer.se/blog</link>
	<description>Anything I found worthy to write down.</description>
	<lastBuildDate>Thu, 12 Mar 2026 11:36:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>When an LG&#8217;s OLED screen won&#8217;t turn on</title>
		<link>https://billauer.se/blog/2024/04/lg-oled-screen-fails-to-power-on/</link>
		<comments>https://billauer.se/blog/2024/04/lg-oled-screen-fails-to-power-on/#comments</comments>
		<pubDate>Wed, 10 Apr 2024 10:52:58 +0000</pubDate>
		<dc:creator>eli</dc:creator>
				<category><![CDATA[miscellaneous]]></category>

		<guid isPermaLink="false">https://billauer.se/blog/?p=7042</guid>
		<description><![CDATA[In case this helps someone out there: I have an LG OLED65B9‬‬ TV screen for four years. Lately, I began having trouble turning it on. Instead of powering on (from standby mode) the red LED under the screen would blink three times, and then nothing. On the other hand, if I disconnected the screen from [...]]]></description>
			<content:encoded><![CDATA[<p>In case this helps someone out there:</p>
<p>I have an LG OLED65B9‬‬ TV screen for four years. Lately, I began having trouble turning it on. Instead of powering on (from standby mode) the red LED under the screen would blink three times, and then nothing.</p>
<p>On the other hand, if I disconnected the screen from the wall power (220V), and waited for a few minutes, and then attempted to turn on the screen as soon as possible after connecting back to power, the screen would go on and work without any problems and for as long as needed.</p>
<p>When I tried to initiate Pixel Refreshing manually, the screen went to standby as expected and the red LED was on to indicate that. Two hours later, I found the LED off, the screen wouldn&#8217;t turn on, and after I did the wall power routine again to turn the screen on again, it indeed went on and complained that it failed to complete Pixel Refreshing before it was turned on.</p>
<p>I tried playing with several options regarding power consumption, and I upgraded webOS to the latest version as of April 2024 (05.40.20). Nothing helped.</p>
<p>I called service, and they replaced the power supply (which costs ~200 USD) and that fixed the problem. That&#8217;s the board to the upper left on the image below. Its part number is <a href="https://lgparts.com/products/eay65170412" target="_blank">‫‪EAY65170412‬‬</a>, in case you wonder.</p>
<p>And by the way, the board to the upper right is the motherboard, and the thing in the middle is the screen panel controller.</p>
<p style="text-align: center;"><em><a href="https://billauer.se/blog/wp-content/uploads/2024/04/lg-oled-screen-inside.jpg"><img class="aligncenter size-medium wp-image-7043" title="LG OLED65B9‬‬ TV screen with cover taken off" src="https://billauer.se/blog/wp-content/uploads/2024/04/lg-oled-screen-inside-300x89.jpg" alt="LG OLED65B9‬‬ TV screen with cover taken off" width="300" height="89" /></a></em></p>
<p style="text-align: center;"><em>(click image to enlarge)</em></p>
<p><span style="text-decoration: underline;">May 19 update</span>: A bit more than a month later, the screen works with no issues. So problem fixed for real. The LED blinks three-four times when I turn it on with the button on the screen itself. So the blinking LED is not an indication of a problem.<em><br />
</em></p>
]]></content:encoded>
			<wfw:commentRss>https://billauer.se/blog/2024/04/lg-oled-screen-fails-to-power-on/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Random insights on lead-acid battery theory</title>
		<link>https://billauer.se/blog/2023/05/lead-acid-battery-discharge-theory/</link>
		<comments>https://billauer.se/blog/2023/05/lead-acid-battery-discharge-theory/#comments</comments>
		<pubDate>Thu, 25 May 2023 10:43:31 +0000</pubDate>
		<dc:creator>eli</dc:creator>
				<category><![CDATA[miscellaneous]]></category>

		<guid isPermaLink="false">https://billauer.se/blog/?p=6859</guid>
		<description><![CDATA[Overview This is a collection of insights regarding lead-acid batteries, in particular those sealed batteries that are used in UPSes. Had it not been for my failed attempts to get a decent battery for my UPS, none of this would have been written. It was only when I asked myself why the UPS doesn&#8217;t maintain [...]]]></description>
			<content:encoded><![CDATA[<h3>Overview</h3>
<p>This is a collection of insights regarding lead-acid batteries, in particular those sealed batteries that are used in UPSes. Had it not been for <a title="APC Smart UPS 750 battery replacement notes" href="https://billauer.se/blog/2021/08/ups-lead-acid-batteries/" target="_blank">my failed attempts to get a decent battery for my UPS</a>, none of this would have been written. It was only when I asked myself why the UPS doesn&#8217;t maintain power nearly as long as I expected that I started to learn more about these batteries.</p>
<p>Batteries is far away from anything I do for a living. <strong>This is definitely not my expertise</strong>. Please keep that in mind. But as it turns out, there&#8217;s a lot to know about them.</p>
<p>Well, I think I&#8217;ll take that back: After a lot of playing with these batteries, my conclusion is that knowledge doesn&#8217;t help much. Run a test, see how long the battery holds up your computer, and that&#8217;s it. There doesn&#8217;t seem to be anything smarter to do.</p>
<p>There&#8217;s probably only one important thing to know about them: They should be fresh. That&#8217;s hardly new, and yet, that&#8217;s probably the bottom line. Lead-acid batteries discharge by themselves over time, and when they reach a certain level of discharge, they get damaged. Also, the discharge rate depends a lot on temperature. So a battery that has been stored in a hot place somewhere in a distant country for over a year is probably no good candidate for your UPS. The manufacturer&#8217;s timestamp is everything: It starts to seem to me that most batteries were more or less the same on the day that they left the factory. The difference is how much damage they caught during storage.</p>
<p>For a concise technical  background, I recommend reading Power  Sonic&#8217;s <a href="https://www.power-sonic.com/wp-content/uploads/2018/12/Technical-Manual.pdf" target="_blank">Technical Manual</a>.</p>
<p>So without further ado, let&#8217;s go through my findings, in more or less random order.</p>
<h3>A 7AH battery doesn&#8217;t really give 7AH</h3>
<p>With lead-acid batteries, 7AH doesn&#8217;t meas 7A for 1 hour. Or 3.5A for 2 hours. Or any other combination, except for 0.35A for 20 hours. More about that below.</p>
<p>The amount of charge (and energy) that a lead-acid battery supplies  until it&#8217;s discharged depends dramatically on the discharging current.  The capacity printed on the battery is given for a 20-hours discharge,  or using the jargon, 0.05C. That &#8220;C&#8221; is 7 taken from the 7AH figure, so  7AH are obtained if the discharge current is 0.35A. For larger currents,  expect much less energy out of the battery.</p>
<p>This phenomenon is approximated by <a href="https://en.wikipedia.org/wiki/Peukert%27s_law" target="_blank">Peukert&#8217;s Law</a>.</p>
<p>For example, my specific case: The load is 70W (at 142VA) according  to the UPS itself. I&#8217;ll assume that the low power factor thing can be  ignored, i.e. that the fact that the VA figure is twice the consumed  power makes no difference. This low power factor is natural to switching  power supplies, as they draw more current when the voltage is low, so  their behavior is far from a plain resistor (unless specifically  compensated to mitigate this effect). I&#8217;ll also assume that the UPS is  100% efficient on its voltage conversion, which is complete rubbish, but  for the heck of it.</p>
<p>So for two 12V batteries in series it goes 70W/24V =~ 2.9A, which is  about 0.4C (2.9 /  7 =~ 0.4). A ballpark figure can be taken from Figure  4 in Power  Sonic&#8217;s <a href="https://www.power-sonic.com/wp-content/uploads/2018/12/Technical-Manual.pdf" target="_blank">Technical Manual</a>,  showing that the voltage starts to drop  after  about an hour, and  reaches the critical value somewhere after an  hour  and a half. Note  that I have different batteries.</p>
<p>Also from Table 2 of the same Manual, we have that the actual  capacity of a 7AH battery, when drained with a 4.34A current, is 4.34AH  (one hour). The current is higher than 2.9A, but given that the UPS  isn&#8217;t really 100% efficient, it&#8217;s likely that the real discharge current  is closer to 4A than to 2.9A. So that explains why the UPS said 1:12  hours when I updated the battery replacement date.</p>
<p>Many battery manufacturers supply datasheets with Discharge  Characteristics Curves. Even better, if there are tables with Constant  Current Discharge Characteristics (also referred to as F.V / Time  specification). See Ritar&#8217;s <a rel="noopener" href="https://www.ritarpower.com/uploads/ueditor/spec/RT1270.pdf" target="_blank">datasheet for RT1270</a>,  for example. The numbers inside this table are the constant currents  for each discharging scenario. Each row is the final voltage (F.V) per  cell that is reached in this scenario, and each column represents the  time it takes to reach this voltage.</p>
<p>It&#8217;s not clear at which voltage the UPS decides to stop discharging.  Even though 1.60V per cell seems to be a recurring number in datasheets  for the game over.  And on the other hand, I&#8217;ve repeatedly seen 0.35A  (i.e. 0.05C) paired with 1.75V and 20 hours discharge in those F.V /  Time tables. So it&#8217;s not really clear. Anyhow, finding a number that is  similar to the intended current in the table can give an idea on how  long the battery is supposed to last.</p>
<p>Obviously, different batteries behave differently on higher currents.  I couldn&#8217;t find data on my &#8220;Bulls Power&#8221; batteries. So maybe they could  meet the 7AH specification for a 20-hours discharge, and then perform  really poorly with higher, real-life currents. No way to know for sure.</p>
<p>So what is the state of the battery after it has been discharged with   less than 7AH? It&#8217;s still charged, as a matter of fact. A  rapid  discharge, which yields less than the full capacity is  healthy for the  battery. It&#8217;s when the full capacity is utilized with a  slow discharge  pattern that the battery can be damaged if it stays in  that state for a  long while.</p>
<h3>Charging a lead-acid battery</h3>
<p>There are in fact several ways to charge a lead acid battery (for example, <a rel="noopener" href="https://www.analog.com/en/design-notes/simple-circuit-charges-leadacid-batteries.html" target="_blank">this</a>), but the common way to charge a battery is to feed it with a current of 0.3C (2.1A for a 7AH battery) until the voltage rises to above a threshold. Or to set a constant voltage (with a current limit) and charge until the current goes below a certain level. Then comes the second phase, which is the slow charging to 100%.</p>
<p>When the battery is full, a floating voltage should be applied to the battery. Each battery specifies its own preferred floating voltage, but they all land at around 13.5-13.8V. This is the correct way to maintain a fully charged battery: A small charging current compensates for the battery&#8217;s inherent discharge (typically around 0.001C, i.e. 7 mA for a 7AH battery), and the battery remains fully charged in a way that is best for its health.</p>
<p>Battery manufacturers usually state something like 10% discharge for 90 days or so. This corresponds to about 0.000046C, or ~0.3 mA for a 7AH battery. But in this scenario, the battery discharges against its own voltage, and not the elevated floating voltage (does it matter?).</p>
<h3>Knowing the battery&#8217;s charge level</h3>
<p>How does one estimate how much energy a lead-acid battery has? The  answer is unpleasant, yet simple: There is really no way to measure it  from the battery electronically. After reading quite some material on  the subject, that became evident to me: There are plenty of papers  describing exotic algorithms for estimating a  battery&#8217;s health and  charge level, and their abundance and variety  proves that there&#8217;s  really no way to tell, except for draining it.</p>
<p>Maybe the first question should have been: What is consumed when the battery gets discharged? For one, sulfuric acid reacts with the lead plates and become lead sulfate. When there&#8217;s no acid left, the battery is done. On the other hand, the lead plates themselves might deteriorate in the process. This can happen relatively early if the lead plates are partly damaged because of previous use (or abuse).</p>
<p>There is one way to measure the charge level that is considered reliable, which is  measuring the open circuit voltage (OCV) after the battery has been  disconnected for a while (some say a few hours, battery manufacturers  typically require 24 hours). Letting the battery rest allows it to reach  a chemical equilibrium, at which point the voltage reflects its charge  level. This is surely true for a fresh battery, because the OCV reflects the specific gravity of the electrolyte, that is the concentration of the sulfuric acid.</p>
<p>As for batteries with some history, the picture is less clear, and I  haven&#8217;t managed to figure out if the OCV voltages remain the same, and  if the voltage vs. charge percentage relate to the original charge  capacity, or the one that is available after the battery is worn out. The OCV measurementt covers the charge level in the sense of how much acid there&#8217;s left to consume, but will the lead plates hold that long?</p>
<p>For example, Power Sonic claims that the OVC goes from 1.94V/cell to  2.16V/cell for 0% to 100% charge respectively. As a 12-volt battery has 6  cells, this corresponds to 11.64V to 12.96V. These figures are quite  similar to those presented by <a href="https://www.master-instruments.com.au/files/knowledge-centre/manufacturers-data/sla_batteries_technical_manual_ed2_1_.pdf" target="_blank">another manufacturer</a>.</p>
<p>But what does 100% charge mean? 7AH or as much as is left when the  battery has worked for some time? My anecdotal measurement of the  batteries I took out from the UPS was 12.99V after letting them rest. In  other words, they presented a OCV voltage corresponding to 100% charge,  even though they had much less than 7AH.</p>
<p>So how does a UPS estimate the remaining runtime? Well, the simple  way is to let the battery run out once, and there you have a number.  Clearly, Smart UPS uses this method.</p>
<p>Are there any alternatives? In theory, the UPS could let the battery  rest for 24 hours, and measure its OCV. This is possible, because most  of the time the UPS doesn&#8217;t need the battery. But even my anecdotal  measurement shows that a 100% charge-like reading doesn&#8217;t mean much.</p>
<p>For other types of batteries (Li-ion in particular), measuring the  current on the battery, in and out (Coulomb Counting), gives an idea on  how much charge it contains. This doesn&#8217;t work with lead acid batteries,  because the recommended way to maintain a standby battery, is to  continuously float charge it. That means holding a constant voltage  (say, 2.25V per cell, that is 13.5V for a 12V battery, or 27V on a  battery pair, as in SmartUPS 750).</p>
<p>As this voltage is higher than the OCV at rest, this causes a small  trickle current (said to be about 0.001C), which compensates for the  battery&#8217;s self discharge. Even if it overcharges the battery slightly,  the gases that are released are recycled internally in a sealed battery,  so there&#8217;s no damage.</p>
<p>Hence the recommended strategy for charging a lead-acid battery is to  charge it quickly as long as its voltage / current pair indicates that  it&#8217;s far from being fully charged, and then apply a constant, known and  safe voltage. This allows it to charge completely slowly, and then  maintain the charge without any risk for overcharging. Odds are that  this is what the UPS does.</p>
<p>But that makes Coulomb Counting  impossible: During the float charge phase  (that is, virtually all the time) the current may and may not actually charge the battery.</p>
<h3>Measuring the discharging curve</h3>
<p>Being quite frustrated by bad batteries, I decided to go for a more direct approach: Instead of taking my computer down and pushing the battery into the UPS each time, I thought it would be easier and more informative to run a discharging test: I used my old <a rel="noopener" href="https://billauer.se/blog/2010/01/fedora-mustek-powermust-600-ups-nut-howto/" target="_blank">Mustek 600 UPS</a> to charge the battery, and then discharged it through a (cheap) 55W light bulb for a car&#8217;s headlight (which is intended for 12V of course). With this, I ran a classic lab experiment, recording voltage and current as a function of time. Like a school lab.</p>
<p>The first step is to charge the battery of course. I&#8217;ve discussed this topic briefly above, but what about my Mustek&#8217;s UPS? It takes a very easy and slow approach: With a partly discharged battery, it starts with an initial charging current of 0.4–0.35 A. This current goes slowly down as the battery&#8217;s voltage rises. The voltage goes up very slowly from 12.8V and eventually stabilizes at a voltage around 13.5-13.6V (depends on the battery). Charging a battery to a decent level takes 7 hours, but I went for a 24 hours charge before running a discharging test. Just to make sure the battery was really fully charged.</p>
<p>By the way, the Mustek UPS charges even when not powered on (but connected to power). When disconnected from power, no charging occurs.</p>
<p>Now to the interesting part: The discharging of the batteries. I made several tests, and they all yielded the same results, more or less. In all of these, I made accurate voltage measurements (with a Fluke) as a function of time. This is the plot of the last experiment I did, with a logarithmic x-axis, each &#8216;x&#8217; mark on the plot is a measurement:</p>
<p><a href="https://billauer.se/blog/wp-content/uploads/2023/05/discharge-plot.png"><img class="aligncenter size-full wp-image-6868" title="Discharging a lead acid battery at 0.55C, voltage vs. time" src="https://billauer.se/blog/wp-content/uploads/2023/05/discharge-plot.png" alt="Discharging a lead acid battery at 0.55C, voltage vs. time" width="560" height="420" /></a></p>
<p>This experiment was done on one of the Bulls Power batteries.</p>
<p>I measured the current throughout the session: The light bulb drew 4.00 A in the beginning (corresponding to ~48W), and the currents remained above 3.8A during the first 20 minutes. So this can be considered a 0.55C discharge.</p>
<p>The first thing to note is that the graph fits the <a rel="noopener" href="https://www.ritarpower.com/uploads/ueditor/spec/RT1270.pdf" target="_blank">discharge curve for Ritar&#8217;s RT1270</a> for 0.55C during the first 18-19 minutes: The voltage goes down gradually, and drops about 0.04V/cell during the first 10 minutes. On the next 8-9 minutes, the voltage drop is about 0.05V/cell, also following Ritar&#8217;s curve.</p>
<p>But then it&#8217;s quickly downhill, strongly diverting from the expected graph. The battery collapses quickly at this point. I haven&#8217;t found a single reference to this behavior, but I suppose that it&#8217;s a result of aging. And/or deep discharge during storage.</p>
<p>Is this consistent with the fact that this battery held for 9 minutes in the UPS, along with one that behaves roughly the same? Maybe. The UPS <a rel="noopener" href="https://billauer.se/blog/2021/08/ups-lead-acid-batteries/" target="_blank">reported a power consumption of 105W</a> in that situation, so if I&#8217;ll assume 90% power efficiency, we have a current of 105 * (1 / 0.9) / 24 = 4.86A ≈ 0.7C. That&#8217;s somewhere between the graph for 0.55C and 1C. So with the steeper discharging curve of this case, it&#8217;s actually possible that the collapse began much earlier.</p>
<p>Other random takeaways:</p>
<ul>
<li>With this battery, it doesn&#8217;t matter so much at which voltage the UPS powers itself off. The last part&#8217;s slope is so steep, so it&#8217;s a matter of 30 seconds this way or another.</li>
<li>A 55W light bulb is blinding and heating. Be sure to have it fixed in a way that prevents it from heating the battery and also make sure  that it&#8217;s literally out of sight, and that no visual contact will be needed with it as long as the experiment runs.</li>
<li>Check the crocodiles&#8217; or easy-hook&#8217;s resistance. In particular crocodiles can have a high an unstable resistance (0.1Ω is high in this context, because it causes a voltage drop of 0.4V).</li>
<li>As it says in many information sources, lead batteries recover after a discharging session after some time of rest: After a day, I connected the battery to the bulb, and it began discharging at 11.8V, and falling rapidly.</li>
</ul>
<h3>Discharging curves, round #2</h3>
<p>The saga went on, and I tell it in detail in the <a rel="noopener" href="https://billauer.se/blog/2021/08/ups-lead-acid-batteries/" target="_blank">other post</a>. The quick summary is: Being unhappy with the Bull batteries, I bought a pair of batteries from a company named Afik, and put them in the UPS. The results weren&#8217;t really impressing with these either, so I decided to replace the Afik batteries with something else. Eventually, I ended up with a pair of Vega Power batteries.</p>
<p>Unfortunately, I didn&#8217;t make any measurements on the Afik batteries before putting them in the UPS, mainly because I thought they would work, and end of story. So as things turned out, I obtained the discharging curve from the new Vega Power batteries before putting them in the UPS, and then I did the same thing with the Afik batteries only after they had been in the UPS for a few months.</p>
<p>This time I created an automatic test setting that allowed two readings per second, so the curves are more accurate and detailed.</p>
<p><span class="yadayada">Note to self: See new-computer/ups/lead acid batteries/discharge-tests-2/.</span></p>
<p>I used the same light 55W light bulb, which drew 4.0A at the beginning of the discharging test, and then went down slowly to about 3.5A towards the end of the test. More or less constant current, that is.</p>
<p>The colors of the curves in the graphs below represent which test they belong to:</p>
<ul>
<li>Red: Vega Power battery #1.</li>
<li>Blue: Vega Power battery #2, first test.</li>
<li>Magenta: Vega Power battery #2, second test.</li>
<li>Green: Afik battery #1.</li>
<li>Cyan: Afik battery #2.</li>
</ul>
<p>Evidently, I obtained a curve from Vega Power battery #2 twice: Once after charging for ~24 hours (from as it came from the shop) with the Mustek UPS, and the second time after a total of ~48 hours from the state of the previous discharging session. The graphs below might imply that I got these two measurements swapped, but no, there&#8217;s no mistake about this.</p>
<p>Vega Power battery #1 was charged during 26 hours (from its initial state from the shop), and then 18 hours with a brief pause between the two charging sessions.</p>
<p>So to the first graph. Time in minutes on the X axis, and voltage per cell on the Y axis.</p>
<p><a href="https://billauer.se/blog/wp-content/uploads/2023/05/graph1.png"><img class="aligncenter size-full wp-image-7005" title="Discharge curves of lead-acid batteries, linear time scale" src="https://billauer.se/blog/wp-content/uploads/2023/05/graph1.png" alt="Discharge curves of lead-acid batteries, linear time scale" width="560" height="420" /></a></p>
<p>The curves begin one minute after discharging starts, and stop when the battery reached 10.0V (with 6 cells in the battery, that&#8217;s 1.67V / cell). I&#8217;ll show more details below about the first minute. As for choosing 1.67V as the end for discharging: The graphs for charging current around 0.55C often go this low in datasheets, so I suppose this shouldn&#8217;t damage the battery.</p>
<p>The first and obvious thing one can see is that the Afik batteries held shorter than the Vega Power batteries: 55 minutes vs. 80-87 minutes. That&#8217;s consistent with the fact that the Vega Power lasted longer in the UPS.</p>
<p>But as I&#8217;ve written in that <a rel="noopener" href="https://billauer.se/blog/2021/08/ups-lead-acid-batteries/" target="_blank">other post</a>, the UPS started to panic-beeping after 7:30 minutes with the Afik batteries, and then kept power up for another 15 minutes. Why did that happen? There&#8217;s nothing in the green nor cyan curves that offers a clue for the reason to the early panic. On the other hand, it&#8217;s evident that these batteries lost voltage quite rapidly after about 40 minutes, possibly going into &#8220;deep discharge&#8221;. That said, they didn&#8217;t collapse nearly as quickly as the Bull Power batteries. So there are definitely different levels of junk.</p>
<p>As for the Vega Power batteries, they performed surprisingly well on these tests. The shortest run was 80 minutes. Taking a gross average of 3.75A as the current, that means that the battery gave 5AH. Quite impressive. Also, according to Ritar&#8217;s datasheet for RT1270, that battery will reach 1.85V/cell after one hour if a current of 3.321A is drawn from it. Vega Power got to that region after 70 minutes with a higher current.</p>
<p>So the question is why the <a rel="noopener" href="https://billauer.se/blog/2021/08/ups-lead-acid-batteries/" target="_blank">UPS started panicking</a> after 28 minutes and cut the power very soon after that. Indeed, the current that is drawn from the batteries was higher inside the UPS. But why that sudden cut? Does it have to do with the curves&#8217; bending at around 1.96V?</p>
<p>In fact, the reason that I repeated the first discharging test on Vega Power #2 (in blue) was that sharp bend. To my surprise, the bend went away on the second test (in magenta), but the battery reached the 1.67V point 7 minutes earlier (after a 48 hours charging). Why? Don&#8217;t know. Lead acid batteries are not supposed to have any memory.</p>
<p>In the next graph, I&#8217;ve removed the curves for the Afik batteries, and left only Vega Power&#8217;s curves. In addition, I&#8217;ve shifted the positions of these curves in the X axis. Namely, I delayed Vega #1&#8242;s curve by 9 minutes, and Vega #2&#8242;s first test&#8217;s curve 2:15 minutes. And we get this:</p>
<p><a href="https://billauer.se/blog/wp-content/uploads/2023/05/graph2.png"><img class="aligncenter size-full wp-image-7006" title="Discharge curves of lead-acid batteries, aligned, linear time scale" src="https://billauer.se/blog/wp-content/uploads/2023/05/graph2.png" alt="Discharge curves of lead-acid batteries, aligned, linear time scale" width="560" height="420" /></a></p>
<p>So it&#8217;s evident that both batteries ran according to an accurate discharging pattern for at least 45 minutes, and then things happened. Is this the start of &#8220;deep discharge&#8221;? Does this mean that discharging the batteries below 1.95V is a bad idea? Maybe this is what my UPS thought, and accordingly stopped after 28 minutes (which could be the same point, as it probably drew more current than this test).</p>
<p>Doesn&#8217;t the part where all three curves overlap look a little linear? I&#8217;ll come back to that below.</p>
<p>It also looks like the shifting I made in the X axis compensates for differences in the initial charging level. If that&#8217;s true, the charging levels of Vega Power #2 were nearly the same in both tests (slightly more charge after the second, 48-hours, charging session). But if so, why did this battery reach 1.67V faster on the second round?</p>
<p>And why was Vega Power #1 significantly less charged after a super-long charging session? Maybe an issue with the Mustek UPS?</p>
<p>The third graph is the same as the first, but with logarithmic X-axis.</p>
<p><a href="https://billauer.se/blog/wp-content/uploads/2023/05/graph3.png"><img class="aligncenter size-full wp-image-7007" title="Discharge curves of lead-acid batteries, logarithmic time scale" src="https://billauer.se/blog/wp-content/uploads/2023/05/graph3.png" alt="Discharge curves of lead-acid batteries, logarithmic time scale" width="560" height="420" /></a></p>
<p>The interesting thing about this representation is that it&#8217;s comparable with the curves that appear in some batteries&#8217; datasheets. It&#8217;s quite evident that these curves are similar to those that are usually given for 0.55C.</p>
<p>The bends of the blue and red curves are more evident on this graph. Recall that they were obtained during the first tests of each of the Vega Power batteries. The pretty curve in magenta is the second run of Vega Power #2.</p>
<p>Finally, I discharged Afik battery #2 down to 1V, which is considered a damaging thing to do. But who cares, I have no plans for this battery anyhow. So here&#8217;s the curve:</p>
<p><a href="https://billauer.se/blog/wp-content/uploads/2023/05/graph8.png"><img class="aligncenter size-full wp-image-7008" title="Discharge curves of a lead-acid battery, including deep discharge" src="https://billauer.se/blog/wp-content/uploads/2023/05/graph8.png" alt="Discharge curves of a lead-acid battery, including deep discharge" width="560" height="420" /></a></p>
<p>Note that this is the same test and same curve as shown above, only that I display it in full here.</p>
<h3>Transient responses</h3>
<p>So far I&#8217;ve been looking at the curves during the actual discharging phase. But some possibly interesting things happen before and after that.</p>
<p>So first, what happens when the discharging begins:</p>
<p><a href="https://billauer.se/blog/wp-content/uploads/2023/05/graph4.png"><img class="aligncenter size-full wp-image-7009" title="Discharge curves of lead-acid batteries, initial response" src="https://billauer.se/blog/wp-content/uploads/2023/05/graph4.png" alt="Discharge curves of lead-acid batteries, initial response" width="560" height="420" /></a></p>
<p>Surprise, surprise, there&#8217;s an undershoot. Why? I&#8217;m tired of trying to even speculate. But it&#8217;s definitely a thing. And by the way, the initial voltages (i.e. with zero current) have no meaning in particular (?), because the batteries didn&#8217;t have enough time to stabilize after charging.</p>
<p>Note that the X-axis is given in seconds here. Not minutes.</p>
<p>And here&#8217;s a close-up on the same graph, just to make the point that the undershoot occurred on all curves:</p>
<p><a href="https://billauer.se/blog/wp-content/uploads/2023/05/graph5.png"><img class="aligncenter size-full wp-image-7010" title="Discharge curves of lead-acid batteries, initial response, zoomed in" src="https://billauer.se/blog/wp-content/uploads/2023/05/graph5.png" alt="Discharge curves of lead-acid batteries, initial response, zoomed in" width="560" height="420" /></a></p>
<p>The next thing to look at is what happens when the discharging process is stopped. I did this by disconnecting the light bulb, so the current went down abruptly from 3.5A to zero. This occurs at time zero of the following graph.</p>
<p><a href="https://billauer.se/blog/wp-content/uploads/2023/05/graph6.png"><img class="aligncenter size-full wp-image-7011" title="Recovery from discharging of lead-acid batteries" src="https://billauer.se/blog/wp-content/uploads/2023/05/graph6.png" alt="Recovery from discharging of lead-acid batteries" width="560" height="420" /></a></p>
<p>Recall that Afik #2 (cyan) went down as low as 1V/cell, and yet it recovered quite similarly Afik #1, which didn&#8217;t go through this minor trauma.</p>
<p>It&#8217;s a well-known fact that lead-acid batteries recover after a high-current discharge and resume their capability to provide energy, even if they aren&#8217;t charged inbetween. This graph shows this phenomenon.</p>
<p>It&#8217;s worth looking at the first couple of minutes of the recovery. This is just a zoom-in of the previous graph (and with time axis shown in seconds instead).</p>
<p><a href="https://billauer.se/blog/wp-content/uploads/2023/05/graph7.png"><img class="aligncenter size-full wp-image-7012" title="Recovery from discharging of lead-acid batteries, zoomed in" src="https://billauer.se/blog/wp-content/uploads/2023/05/graph7.png" alt="Recovery from discharging of lead-acid batteries, zoomed in" width="560" height="420" /></a></p>
<p>Aside from the immediate jump of the voltage when the light bulb is disconnected, there&#8217;s a smooth and yet fast rise in the voltage.</p>
<p>Another thing that is evident from this graph, is how much faster the Afik batteries went down towards the 1.67V level, compared with the Vega Power batteries (this refers to the time period before zero).</p>
<h3>Is a DC test legit?</h3>
<p>This test is made with a DC current, but the UPS discharges the battery with an alternating current: As the UPS feeds the computer with an AC voltage, the delivered power as a function of time is a more or less a sinus function (if the UPS produces a sinus wave). At any time, the energy that is delivered to the computer is drawn from the battery. The UPS barely stores any energy in its own circuits. So the current from the battery is also a sinus, more or less.</p>
<p>So does a test with a DC current reflect the situation with an alternating current? Is it good enough to rely on the average power, and derive a DC current from that? According to Okazaki et al. (&#8220;<a rel="noopener" href="https://link.springer.com/article/10.1007/BF01006535" target="_blank">Influence of superimposed alternating current on capacity and cycle life for lead-acid batteries</a>&#8220;) the rippled current doesn&#8217;t change the battery&#8217;s capacity at all. They tested a current of I=I<sub>0</sub>(1+sinωt) at 0.1Hz to 4 kHz and found only negligible differences (1%). So the DC current test seems to be accurate.</p>
<h3>Linear discharge curve?</h3>
<p>I&#8217;m going back to Vega Power&#8217;s second graphs, where I aligned three graphs by shifting them in the X axis. Let&#8217;s look at this graph again, but now with a dash-dotted line which represents the first-order linear regression of the segment between 20 and 40 minutes:</p>
<p><a href="https://billauer.se/blog/wp-content/uploads/2023/05/graph9.png"><img class="aligncenter size-full wp-image-7017" title="Discharge curves of lead-acid batteries, linear segment shown" src="https://billauer.se/blog/wp-content/uploads/2023/05/graph9.png" alt="Discharge curves of lead-acid batteries, linear segment shown" width="560" height="420" /></a></p>
<p>So there&#8217;s no doubt that the Vega Power batteries&#8217; voltage went down linearly as a function of time for a while. Maybe it was the divergence from this linear descent that made the UPS panic after 28 minutes (once again, the UPS drew a higher current).</p>
<p>Looking at Afik&#8217;s curves, they don&#8217;t appear linear at any stage. Maybe that&#8217;s why the UPS became nervous very soon, but then nothing dramatic happened, so it kept running.</p>
<p>What about the Bulls Power battery? I didn&#8217;t show the graph with linear time scale above, but here it is:</p>
<p><a href="https://billauer.se/blog/wp-content/uploads/2023/05/graph10.png"><img class="aligncenter size-full wp-image-7018" title="Discharge curves of lead-acid batteries, linear segment shown" src="https://billauer.se/blog/wp-content/uploads/2023/05/graph10.png" alt="Discharge curves of lead-acid batteries, linear segment shown" width="560" height="420" /></a></p>
<p>Once again, the linear regression is shown with a dash-dotted line. There are fewer measurement points, but it&#8217;s quite clear that the voltage descends linearly for a while.</p>
<p>The slopes of these dash-dotted lines are -2.09 mV/minute for the Vega Power batteries, and -2.86 mV/minute for Bulls Power.</p>
<p>What&#8217;s the explanation for this linear behavior? Reiterating that lead-acid batteries is not my expertise, I&#8217;ll give it a shot:</p>
<p>At the first stage of discharging, the voltage curves seem to be governed mainly by the concentration of sulfuric acid close to the lead plates. As the acid is consumed by the discharging process, the supply of new acid depends on motion of ions between the two plates. A high current means a quick rate of consumption that works against the motion of ions, some of which depends on plain diffusion. So the result is a lower concentration of acid, hence a lower voltage. This, I suppose, explains why the curves go down faster for higher currents, and why the battery recovers quickly afterwards.</p>
<p>But here&#8217;s the thing: When the current is constant, the gradient of the sulfuric acid&#8217;s concentration stabilizes inside the cell after a few minutes. The motion of ions gets into a stable pace. However, as the current flows, sulfuric acid is consumed. This brings down the concentration of acid overall, even though the differences (gradients) remain the same. The current is constant, and the sulfuric acid is consumed against electrical charge that passes through the battery, so we have a linear slope.</p>
<p>At some point, the curve breaks off from this pattern, and begins diving faster. A possible reason is that the lead plates begin to lose effective surface area (blocked by lead sulfate?), so the current needs to go through a smaller surface. This is equivalent to a larger current, with the due implications on voltage drop.</p>
<p>This seems to be what is often referred to as &#8220;deep discharge&#8221;. This is a term that is loosely used with reference to drawing too much charge from a battery. Everyone seems to agree that this phase reduces the battery&#8217;s capacity on the following cycles, but when does it start? Is it when the curve diverges from the linear pattern? Or when the voltage gets to the level that the manufacturer suggests avoiding?</p>
<p>Academic material on the topic is also scarce (for example, <a rel="noopener" href="https://www.researchgate.net/publication/322478132_Deep_Discharge_Behavior_of_Lead-Acid_Batteries_and_Modeling_of_Stationary_Battery_Energy_Storage_Systems" target="_blank">this paper</a>), but it seems like this phase occurs when the lead plates start to take their impact. As evident from the graphs shown above, this phase is rather unpredictable. Even though lead-acid batteries are said not to have a memory effect, that seems to be true until it comes to the lead plates themselves. They remember.</p>
<p>It looks like Smart UPS takes the linear slope approach. Or maybe it looks at the slope of the voltage as a function of time. As long as sulfuric acid is consumed, it&#8217;s OK, but when the lead plates begin to deteriorate, that&#8217;s time to beep like crazy. This strategy makes a lot of sense for a long battery life, but less beneficial when power outages are rare, so who cares if the battery gets a small hit every few months. But all this is my speculation on how the UPS makes its choices.</p>
<h3>Afterthoughts</h3>
<p>So what have I learned from all this messing around with the batteries? Not a whole lot of relevant information, I&#8217;m afraid. <a rel="noopener" href="https://en.wikipedia.org/wiki/Lead%E2%80%93acid_battery" target="_blank">Invented in 1859</a>, lead-acid batteries are easy to manufacture and easy to use, but there doesn&#8217;t seem to be a simple theory that accurately describes their behavior. As my own anecdotal experiments show, even the same battery won&#8217;t repeat its own discharging curve twice.</p>
<p>Maybe it was because I tried low-quality batteries (or are they?) and inaccurate apparatus for charging the batteries (the Mustek UPS). On the other hand, it&#8217;s difficult to find written material that describes the behavior of these batteries, even under lab conditions.</p>
<p>The state of car batteries is often tested by measuring the &#8220;cranking current&#8221;. This is the huge current when the car is started. This is a crude and indirect measurement of the lead plates&#8217; resistance, which I suppose gives some indication of the battery&#8217;s condition. Does it ensure that your battery will hold for the next 12 months? Good luck with that.</p>
<h3>Startup idea</h3>
<p>The main conclusion from all this rambling is that the only way to know how long a battery will supply power is to fully discharge it. That is, down to a reasonable level that doesn&#8217;t harm it. On the other hand, a UPS should be able to give an accurate estimate of how long time it can hold up the computer, so that its user can decide when it&#8217;s time to replace the battery or batteries. Plus, the UPS needs to know this for the purpose of shutting down the computer gently a few minutes before it&#8217;s game over.</p>
<p>Smart UPS has a feature called &#8220;calibration&#8221; which does exactly that: It puts the computer on the batteries and discharges them until they reach the lowest acceptable level, and then resumes normal operation. The problem is that if the main power goes out at that moment, there&#8217;s nothing to hold up the computer with. So this has to be initiated by the user every now and then.</p>
<p>Solution: Make a UPS with say, four batteries, each of which is connected independently to the UPS&#8217; power conversion circuitry. This way, the UPS can initiate a full discharge test on one of these batteries while the others remain fully charged. At the worst moment, the overall capacity will stand at 75%.</p>
<p>These discharge tests can be initiated automatically by the UPS for each of the four batteries every couple of weeks or so. This way, the UPS can give an accurate number for how long the UPS will hold up power.</p>
<p>This allows the user to decide when it&#8217;s time to replace the batteries. It also makes it possible to replace the batteries gradually, without turning off power. And the UPS can also inform the user if the new battery was worth the money.</p>
<p>Will this startup work? I doubt it. The vast majority of people just buy a UPS and believe it will do the work. They realize their mistake when the power goes out for more than two minutes, and buy a new UPS instead. Replacing lead-acid batteries separately? Come on.</p>
]]></content:encoded>
			<wfw:commentRss>https://billauer.se/blog/2023/05/lead-acid-battery-discharge-theory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>APC Smart UPS 750 battery replacement notes</title>
		<link>https://billauer.se/blog/2021/08/ups-lead-acid-batteries/</link>
		<comments>https://billauer.se/blog/2021/08/ups-lead-acid-batteries/#comments</comments>
		<pubDate>Tue, 31 Aug 2021 04:17:24 +0000</pubDate>
		<dc:creator>eli</dc:creator>
				<category><![CDATA[miscellaneous]]></category>

		<guid isPermaLink="false">https://billauer.se/blog/?p=6400</guid>
		<description><![CDATA[Introduction This post continues my notes on Smart UPS 750, three years later, when it was time to replace the batteries (because they barely held for 13 minutes). It should have been simple, but if I wrote this lengthy post about it, there was clearly something going on. I&#8217;ve also written a separate post on [...]]]></description>
			<content:encoded><![CDATA[<h3>Introduction</h3>
<p>This post continues <a title="Linux + APC Smart UPS 750 notes (apcupsd and other stuff)" href="https://billauer.se/blog/2018/10/apc-smt750-ups-linux-apcupsd/" target="_blank">my notes on Smart UPS 750</a>, three years later, when it was time to replace the batteries (because they barely held for 13 minutes). It should have been simple, but if I wrote this lengthy post about it, there was clearly something going on. I&#8217;ve also written a <a title="Random insights on lead-acid battery theory" href="https://billauer.se/blog/2023/05/lead-acid-battery-discharge-theory/" target="_blank">separate post</a> on general insights on the theory behind lead-acid batteries.</p>
<p><strong>Note that UPSes and their batteries is not my field.</strong> These are just my notes as I found my way through. Also, I&#8217;ve added to and modified this post several times, so there are definitely inconsistencies in my actions and conclusions, because I learned as I went.</p>
<p>So for short, the main takeaways are these:</p>
<ul>
<li><strong>Update the time of last battery replacement</strong> with the UPS&#8217; front panel interface (somewhere under Configuration). This makes the UPS realize there are new batteries inside, which changes the way it calculates the estimated runtime.</li>
<li>Two standard 12V / 7AH lead acid batteries can be used instead of APC&#8217;s original battery pack. But check that the terminals are 6mm wide. There are mainly two kinds of terminals: F1 (4.75 mm wide) and F2 (6.35 mm wide).</li>
<li>The &#8220;battery fill&#8221; percentage is close to meaningless.</li>
<li>The displayed battery runtime is not reliable.</li>
<li>Every now and then, yank the power cord and see how long the UPS lasts. Expect surprises both ways. Battery calibration doesn&#8217;t help much.</li>
</ul>
<p>And now, the deep dive.</p>
<h3>Replacing the batteries</h3>
<p>The original replacement battery for this UPS is <a href="https://www.apc.com/us/en/product/RBC48/apc-replacement-battery-cartridge-vrla-battery-7ah-24vdc-2year-warranty/" target="_blank">RBC48</a>. But not only is this pack horribly expensive, it&#8217;s also hard to find (and maybe they&#8217;re not manufactured anymore?).</p>
<p>The process for battery replacement with non-APC batteries is shown in <a href="https://www.youtube.com/watch?v=6HRhtGNHXoQ" target="_blank">this video</a>, but it&#8217;s really not complicated. Yank off the front panel, then the pull down the metal panel behind the former, and pull out the batteries gently. Use the harness that connects the two existing batteries on the new ones, push them in and you&#8217;re done. Plus some packing tape to keep the two batteries together.</p>
<p>However the original batteries&#8217; contact terminals are about 6mm wide (F2),  contrary to the ones on the battery I bought (F1), which were considerably  smaller. So even though there was no problem connecting the batteries,  it wasn&#8217;t all that reassuring that the contacts were smaller.</p>
<p>This is a picture taken from above, showing the original pair of batteries I pulled out from the UPS (click to enlarge):</p>
<p><a href="https://billauer.se/blog/wp-content/uploads/2021/08/batteries.jpg"><img class="aligncenter size-medium wp-image-6404" title="Original battery pack for APC Smart UPS 750" src="https://billauer.se/blog/wp-content/uploads/2021/08/batteries-263x300.jpg" alt="Original battery pack for APC Smart UPS 750" width="263" height="300" /></a></p>
<p>The blue thing in the middle contains a fuse, and the black connector at the top mates with the UPS.</p>
<p>But when I powered up the UPS, the expected runtime shown on the display was just 13 minutes, even though the charge level appeared as 100%. I was surprised to see a 100% charge level on batteries that were just installed, and even more disappointed with the expected runtime. Could it be that bad? Both APC&#8217;s <a href="https://www.apcguard.com/Smart-UPS-Runtime-Chart.asp" target="_blank">runtime chart</a> and my own simple energy calculation (see below) pointed at one hour at least with the load I had. And it didn&#8217;t improve after letting the UPS work for a few hours.</p>
<p>My first though was that I had been sold exceptionally junky batteries. But I bought them at a reputable electronics shop, and they carried a timestamp indicating they were fresh (but see below, they were actually junk).</p>
<p>And then it occurred to me that I should tell the UPS that I had replaced batteries. So I went to the part in the UPS&#8217; configuration menu for setting the month and year of the last battery change, and did that. And to my surprise, the runtime was adjusted to 1hr 12 minutes right away. There a few posts out there (<a href="https://conetrix.com/blog/manually-esetting-an-apc-smart-ups-battery-constant-after-new-battery-replacement" target="_blank">this</a>, for example) on how to &#8220;reset the battery constant&#8221; manually. It seems like this relates to the same thing.</p>
<p>Cute, I thought. But is that figure correct? So I let the UPS run on battery for a while. The estimated runtime went down in pace with the wall clock, but then suddenly, after 23 minutes, it took the power down.</p>
<p>So I reconnected the UPS back to power, and let the battery charge until it reached 100% again. At which point it reported:</p>
<pre>$ <strong>apcaccess</strong>
APC      : 001,027,0652
DATE     : 2021-08-29 20:21:36 +0300
HOSTNAME : thehost
VERSION  : 3.14.14 (31 May 2016) debian
UPSNAME  : theups
CABLE    : USB Cable
DRIVER   : USB UPS Driver
UPSMODE  : Stand Alone
STARTTIME: 2021-08-29 18:30:15 +0300
MODEL    : Smart-UPS 750
STATUS   : ONLINE
BCHARGE  : 100.0 Percent
TIMELEFT : <span style="color: #ff0000;"><strong>23.0 Minutes</strong></span>
MBATTCHG : 5 Percent
MINTIMEL : 3 Minutes
MAXTIME  : 300 Seconds
ALARMDEL : 30 Seconds
BATTV    : 26.6 Volts
NUMXFERS : 0
TONBATT  : 0 Seconds
CUMONBATT: 0 Seconds
XOFFBATT : N/A
STATFLAG : 0x05000008
MANDATE  : 2018-05-22
SERIALNO : AS1821351109
NOMBATTV : 24.0 Volts
FIRMWARE : UPS 09.3 / ID=18
END APC  : 2021-08-29 20:22:01 +0300</pre>
<p>Smart UPS or what? If the battery died after 23 minutes last time, how much has it left when fully charged? Let me think&#8230; 23 minutes!</p>
<p>And yet, that sounds way too short for a new battery. More than 24 hours later, the same runtime estimation remained, going up and down a minute or so occasionally. So that&#8217;s that.</p>
<p>It could be correct, however. The way to find out is to try again after a month or so. For that, there&#8217;s <a href="https://www.apc.com/us/en/faqs/FA284198/" target="_blank">battery calibration</a>. Which for my UPS means &#8220;let the battery drain and measure its way down until it&#8217;s empty&#8221;. See my follow-up note on that: It&#8217;s more or less like unplugging power from the UPS, but less helpful it turns out. Note that the load is said to lose power at the end of this process, even though that didn&#8217;t happen to me. So the computer needs to be taken down safely, and then held in a state where a power failure won&#8217;t hurt (e.g. stuck in some boot menu). This way, it remains as an electrical load, but nothing bad happens when the power goes down.</p>
<p>Battery calibration is launched from the front panel menu as well. Why the best way to calibrate is to yank the power cord is explained in the follow-up note below.</p>
<h3>Make sure the batteries are equally charged</h3>
<p>Before connecting a pair of batteries in series (as in my case), it&#8217;s a good idea to charge them separately, if possible. That&#8217;s true in particular if a discharging test is made immediately after installation. Otherwise, differences in the charging levels may result in a deep discharge of one of the batteries. It&#8217;s the same principle as not mixing different batteries in any electronic device.</p>
<p>Alternatively, wait for a while (24 hours?) before the first attempt to discharge the batteries, so both batteries reach the same level by virtue of the floating current.</p>
<p>Otherwise, how can it go wrong? Say, for example, that the UPS stops discharging at 1.7V/cell, which is a rather conservative limit. This means 10.2V for a single battery. But if this is a pair of batteries, this means cutting off at 20.4V. If one battery is still before its steep downhill phase, it can be giving 12.0V. As a result, the other battery will go down to 8.4V when the discharging stops. That&#8217;s 1.4V/cell, which isn&#8217;t a good idea, except for with a high current discharge. In the datasheets, all discharge curves end at higher than 1.5V/cell, except possibly for with the higher currents.</p>
<h3>A note on power consumption</h3>
<p>It&#8217;s quite obvious that the computer&#8217;s power consumption depends on its activity. But as it turns out, the power consumption is <em>higher</em> before Linux&#8217; kernel is loaded.</p>
<p>More specifically, when the computer is on the GRUB menu, the UPS reports 105W / 157VA. One could argue that this is as idle as the computer could be. But then, when Linux&#8217; kernel has been loaded, and it prompts me for my disk unlock password, the power stands at 65W / 120VA. After Linux has booted completely and the desktop is up, it&#8217;s 70W / 127VA. So the Linux kernel surely does something to reduce the power consumption when it kicks off.</p>
<p>When compiling a Linux kernel with 12 processes, the power consumption goes to 165W, 217VA.</p>
<p>It&#8217;s quite evident that the power factor improves as the power consumption increases. This is in line with Corsair’s promise to attain power level of unity at full capacity (which is 850W, a long way to go).</p>
<p>I run all my battery tests with the computer on GRUB. One has to pick one scenario, and this one represents a computer under moderate load. Whatever that means.</p>
<h3>Why a battery drain test is necessary</h3>
<p>It&#8217;s not clear what my Smart 750 UPS did with the batteries when recharging after they were completely empty. Coulomb Counting is irrelevant on lead acid batteries, because they are constantly discharging. The battery is supplied with a &#8220;float current&#8221; while being fully charged to keep it in that state.</p>
<p>Besides, there are several factors that influence the battery&#8217;s discharging curve. It might discharge nicely for a while, and then suddenly the voltage drops abruptly because the lead plates are worn out. The only way to know about this is to reach that point.</p>
<p>Another factor is that even when the UPS reports that the battery is 100% full, it may still accumulate charge for a long while after that. The UPS might consider the battery full and provide it with a &#8220;floating current&#8221; but in reality it&#8217;s still charging the battery very slowly. A real discharge test should be made no sooner than 24-48 hours of charging.</p>
<h3>Follow-up: Recalibrating the battery after two months</h3>
<p>Being suspicious about the 23 minutes estimate, I took the computer  down after running 76 days (on 14.11.21), kept it powered on so it would  load the UPS, and ran a calibration test on the UPS. There&#8217;s nothing  special about those two and a half months, it just happened to be a  convenient time.</p>
<p>During those 76 days, I had monitored the UPS&#8217; answer to apcaccess,  and it was steady: The battery voltage remained between 26.8V and 27.0V,  and the running time remained around 23 minutes. The UPS didn&#8217;t change  its mind.</p>
<p>So about the calibration test itself: I started it from the front  panel, under the Test Menu, and it read &#8220;CalibrationTest in Progress&#8221;  (the missing space as on the screen). The UPS beeped just like when it&#8217;s  on battery because of a power loss, and it hummed accordingly. After 20  minutes it went back to main power, claiming to have 15 minutes left.  That&#8217;s it. It didn&#8217;t reach the stage of beeping rapidly, and neither did  the power to the computer go off at any time.</p>
<p>At this point I yanked the main power cord, and let it run out. It  kept going for another 5 minutes (despite the promise) and then beeped  rapidly. 30 seconds later, power went off.</p>
<p>So all in all, it ran for 25 minutes before it died out. The 23 minutes estimate was quite accurate.</p>
<p>Conclusion: Don&#8217;t bother calibrating. Just yank the power cord, and measure time.</p>
<p>The third important takeaway is that those &#8220;Bull Power&#8221; batteries are  more like bull-something-else, and I should schedule another battery  replacement in a year or so.</p>
<p>And here comes the really funny part. After letting the UPS recharge fully, I checked it again:</p>
<pre>$ <strong>apcaccess</strong>
APC      : 001,027,0652
DATE     : 2021-11-14 15:19:02 +0200
HOSTNAME : thehost
VERSION  : 3.14.14 (31 May 2016) debian
UPSNAME  : theups
CABLE    : USB Cable
DRIVER   : USB UPS Driver
UPSMODE  : Stand Alone
STARTTIME: 2021-11-14 13:50:25 +0200
MODEL    : Smart-UPS 750
STATUS   : ONLINE
BCHARGE  : 100.0 Percent
TIMELEFT : <span style="color: #ff0000;"><strong>34.0 Minutes</strong></span>
MBATTCHG : 5 Percent
MINTIMEL : 3 Minutes
MAXTIME  : 300 Seconds
ALARMDEL : 30 Seconds
BATTV    : 26.8 Volts
NUMXFERS : 0
TONBATT  : 0 Seconds
CUMONBATT: 0 Seconds
XOFFBATT : N/A
STATFLAG : 0x05000008
MANDATE  : 2018-05-22
SERIALNO : AS1821351109
NOMBATTV : 24.0 Volts
FIRMWARE : UPS 09.3 / ID=18
END APC  : 2021-11-14 15:19:02 +0200</pre>
<p>Is this a smart UPS or what? It just had a calibration cycle which  ended with losing power after 25 minutes. How could it estimate 34  minutes now? Maybe if I try again I&#8217;ll get 34 minutes? And if this is because the PC consumes less power when Linux is running, why was it only 23 minutes before?</p>
<p>Don&#8217;t know. I&#8217;ve  played with this enough.</p>
<h3>Second replacement, 16.4.23</h3>
<p>I wasn&#8217;t happy with those &#8220;bulls&#8221; batteries, so I went for an early replacement of these. It turns out that it&#8217;s quite difficult to find batteries that are anything but a complete no-name. I barely able to get my hands on a Ritar. And when I say barely, I mean that I managed to get batteries from a local store. This shop pretends to have its own brand, with a battery labeled AK12-7. But I got a photo of a shipping bill, which indicated that the batteries are manufactured by Ritar. So I went for a pair of those. On the invoice I got from the shop, it says RT1270 <a href="https://www.ritarpower.com/uploads/ueditor/spec/RT1270.pdf" target="_blank">(this is the datasheet)</a>.</p>
<p>According to the datasheet, the discharge time at 0.55C (see discussion about discharge rates in my <a title="Random insights on lead-acid battery theory" href="https://billauer.se/blog/2023/05/lead-acid-battery-discharge-theory/" target="_blank">separate post</a>) should be one hour. My test ran at 105W, which is grossly 105W/24V =~ 4.4A, which is about 0.63C. So I should have expected 50 minutes or so.</p>
<p>These batteries have small (F1) contact terminals too. I didn&#8217;t even think about checking that before I ordered them, actually. But the datasheet says that the battery comes with both F1 and F2 terminals.</p>
<p>I&#8217;ll skip to the bottom line right away: These batteries were junk, much worse than the previous ones. It&#8217;s plain fraud to call these batteries RT1270. Or maybe it has to do with the timestamp on the battery, which says &#8220;201022&#8243;. What does it mean? Judging from another battery from the same manufacturer (but different model), which had the timestamp &#8220;221215&#8243;, the new battery in the UPS was manufactured in October 2020. That could explain things.</p>
<p>So to the story: First I tested the old batteries. I put the computer on the GRUB menu and yanked the power supply from the UPS. Actually, I aborted the first experiment and let the batteries refill on the first attempt. The reason was that the (Western Digital) hard disks made the noise of (proper) activity, so I guess they were doing some kind of self-maintenance or something. I suppose they should be able to take a power loss in the middle of whatever they were doing, but I didn&#8217;t want to push my luck. So I just waited long enough, and then they went silent again.</p>
<p>The UPS went down after 9 minutes. Its estimation prior to the test was 12 minutes. The estimation was not bad.</p>
<p>I replaced the batteries with the Afik (Ritar) pair (a.k.a. junk), updated the time of last battery replacement on the UPS, and turned it on. Something was apparently wrong. The UPS was connected to proper power supply, and yet the computer didn&#8217;t switch on properly: It powered on, and after a few seconds it had some kind of reboot. It wasn&#8217;t clear what the problem was. It could also be because of a problematic USB hub, which tends to irritate the computer (partly because it has its own power supply).</p>
<p>At a later stage I discovered that the BIOS had been reset. Maybe because the computer had been powered off for a relatively long time. How did I notice? Because the CPU fans made more noise than usual, and the CPU&#8217;s temperature was lower than usual. I&#8217;ve changed the settings in the BIOS to silence the fans somewhat (within safe limits, of course). Plus the RGB sequence of the LEDs inside the computer stopped working. Should I change the BIOS&#8217; battery too?</p>
<p>What I did next was a bit random, but at some point the UPS requested me to confirm that the battery had been replaced.</p>
<p>I took out the battery and pushed it in again. Maybe a loose connection? Who knows. Eventually, I connected the UPS to power, turned on the computer, and all ran fine.</p>
<p>The UPS said that the battery&#8217;s charge was 100% and promised all kinds of battery times (mostly around 50 minutes).</p>
<p>I then ran a battery test again. It lasted 5 minutes. When the UPS went on again, it gave the battery 28% and promised 14 minutes. Not so smart UPS.</p>
<p>So I let the battery load to 100% again (that took about 90 minutes), and ran a second battery test.</p>
<p>Bottom line: The UPS promised 49 minutes, in reality it held 11 minutes. This promise made sense, as it was probably based upon 0.63C. No chance in the world that this is an RT1270. Not a decently fresh one, anyhow.</p>
<p>So the old batteries, which I considered new held held 23 minutes when they were new, and 9 minutes after roughly a year and a half. These new batteries held 11 minutes as new!</p>
<p>Restarting the UPS, it reported 0% battery (make sense, doesn&#8217;t it?) and no 0 minutes runtime. After getting fully charged, the UPS promised 17 minutes. But that was with Linux running, so the power consumption is lower than the test. So it&#8217;s a reasonable estimation for a horrible battery.</p>
<p>Conclusion: I need to replace the batteries again, within a year. The computer shuts itself down after 5 minutes, so I guess it will be fine, but this is ridicolous.</p>
<h3>Strategy for the next time</h3>
<p>After two fiascoes, I&#8217;m changing strategy. So these are things I&#8217;m going to insist on:</p>
<ul>
<li>The marking on the battery should belong to a company that has a more or less proper website, from which I can download a datasheet.</li>
<li>The datasheet should include discharging characteristics, either in the form of curves or tables, preferably both.</li>
<li>The battery&#8217;s model code, as it appears in the datasheet, should be printed on the battery.</li>
<li>If the battery is marked with the name of a local importer, it&#8217;s by far not as good, even if the importer publishes a datasheet that is possibly identical to the one of the manufacturer.</li>
<li>The manufacturing date of the battery should be marked on the battery. It should be easy to figure out what it means, and the battery should be fresh of course.</li>
<li>Prefer an F2 terminal</li>
<li>Reputable brand is a bonus.</li>
</ul>
<p>The rationale: A datasheet with discharging characteristics is a commitment. If a large company buys 1000 batteries, and tests a few samples just to find out that they don&#8217;t meet the specs, a hefty lawsuit may follow. No sane battery manufacturer will take that risk if it can&#8217;t ensure that their batteries perform well.</p>
<p>I couldn&#8217;t find such a datasheet for &#8220;Bulls Power&#8221;, and surely not for that Afik piece of junk. The latter was probably manufactured by Ritar, but not with their commitment.</p>
<p>Not going to insist on: A known brand. Ritar batteries are unavailable here at the moment, an Yuasa&#8217;s batteries cost a fortune. <a rel="noopener" href="https://assets.smartpowershop.co.uk/assets/files/15/36/41/yuasa-np7-12-batteries.pdf" target="_blank">Their datasheet</a> shows discharging graphs, of course. But no tables.</p>
<p>But more than anything, it seems like it&#8217;s a matter of age. I don&#8217;t think anyone manufactures really bad batteries to begin with. I speculate that those junk brands buy old batteries from good manufacturers, and market them with a different name, at a low price.</p>
<h3>Who to buy from</h3>
<p>Obviously, web shops are the easiest options. If they cooperate with sending me photos of the battery (see below). If not, go for bricks and mortar electricity shops (<a href="https://www.erco.co.il/" target="_blank">Erco</a>, for example). Also consider shops and repair shops for motored toy vehicles for small kids. The search word in Hebrew for that is ממונעים (which means &#8220;motored&#8221;) but is somehow a collective term for these toys.</p>
<h3>Is this a Covid-19 thing?</h3>
<p>I called up <a href="https://lion.co.il/" target="_blank">Lion Electronic</a>&#8216;s sales (a company I consider reputable) for a couple of Yuasa batteries (200 NIS each, April 2023), and I was told that they won&#8217;t sell me two batteries at that price, because they are imported specially, and that has an extra cost.</p>
<p>My next hope was to get an <a href="https://www.aokly-battery.com/" target="_blank">Aokly </a>6FM7/6FM9, which are quite available here. However, as of April 2023, two different suppliers told me that it had no manufacturing date printed on it. Which is really weird. So this manufacturer is irrelevant.</p>
<p>I made other significant attempts to get a battery that meets the above criteria in May 2023, and failed: Every time I asked for a photo of the battery and its timestamp, I got no response, or a rather negative one. I got online purchase orders canceled twice while attempting to buy a CSB battery from an online shop, which is an importer of this battery. After talking with someone at the company about manufacturing date, and putting that request in the comments of the order, the company canceled the order, claiming that they don&#8217;t work with end customers (so why was it listed on the website?) and the batteries were delisted from the website. Trying to get the same battery from a web shop (that is, from the same source, but indirectly), I got the order canceled again, with the supposed reason that the minimum purchase for resellers is 10 units.</p>
<p>And there were several other attempts that ended with the other side simply not cooperating with sending me a couple of photos.</p>
<p>Given this rather odd picture, I speculate that there was a lot of batteries that got stuck in storage, somehow related to Covid-19. And now the manufacturers need to get rid of a whole lot of old, and hence damaged batteries. That&#8217;s the best explanation I have to all these batteries with no date marking, plus a lot of weird behavior.</p>
<p>My decision was hence to stop my attempts to replaced the batteries in my UPS for six months, and try again somewhere towards the end of 2023.</p>
<h3>Third battery replacement, 17.12.23</h3>
<p>I went into <a rel="noopener" href="https://www.erco.co.il/" target="_blank">Erco</a>&#8216;s shop in Kiryat Ata, and was offered a couple of Vega Power NP12-7 batteries. Never heard about that brand? Neither have I. Neither did this company have a reassuring Internet footprint. But the batteries had an an engraved timestamp saying 10/08/2023 and they had F2 terminals. So I bought a couple of them, at a price of 120 NIS, VAT included. Cheap, in other words.</p>
<p>And the answer to my previous question: Yes, the lack of fresh batteries was most likely a Covid-19 thing.</p>
<p>I ran a detailed discharging test on these two batteries, which I write about in <a rel="noopener" href="https://billauer.se/blog/2023/05/lead-acid-battery-discharge-theory/" target="_blank">that separate post</a>. Spoiler: The discharging test doesn&#8217;t say too much about how the batteries will behave inside the UPS.</p>
<p>First, I wanted to check the situation of the Afik batteries that were already inside the UPS. I brought down the computer to where GRUB waits for prompt, so the UPS reported power consumption was 105W / 150VA. At this point, the UPS promised 12 minutes.</p>
<p>So I yanked the power cord. The UPS began panic beeping after 7:30 minutes, stating 3 minutes were left, which dropped down to 0% and 0 minutes quite soon. Contrary to its pessimistic estimation, the UPS kept up the power for quite long after that, so the total time with power ended up at 22:00 minutes.</p>
<p>Say what? The same batteries held 11 minutes when I first put them in the UPS, and now the time doubled?!</p>
<p>If I don&#8217;t want to develop mysterious theories about what happens inside the battery, the explanation could be that the battery was far from being fully charged when I tested it a few months earlier: The UPS claimed that the battery was 100% full after 90 minutes, but it&#8217;s quite possible that this estimation was anything but accurate.</p>
<p>It&#8217;s also worth citing <a href="https://www.power-sonic.com/wp-content/uploads/2018/12/Technical-Manual.pdf" target="_blank">Power Sonic&#8217;s Technical manual</a>: &#8220;By cycling the battery a few times or float charging it for a month or two, the highest level of capacity development is achieved. Power-Sonic batteries are fully charged before leaving the factory, but full capacity is realized only after the battery has been cycled a few times or been on float charge for some time&#8221;. This is written about another lead-acid battery of course, but maybe it&#8217;s a thing that a few months inside the UPS does the battery good.</p>
<p>I replaced the Afik batteries with Vega Power&#8217;s. These batteries had been separately charged with another UPS for 48 hours each. After updating the battery replacement date on the UPS (i.e. telling the UPS that there are new batteries inside), the UPS initially promised an uptime of above an hour, and then swayed along until it gradually stabilized at 49 minutes.</p>
<p>Yanked the power cord. All was good and calm until panic beeping started after 28:15 minutes, after which the power went out just a few seconds later. Boom.</p>
<p>The computer was stable on the GRUB menu throughout all this.</p>
<p>So what&#8217;s the verdict? I don&#8217;t know. The <a rel="noopener" href="https://billauer.se/blog/2023/05/lead-acid-battery-discharge-theory/" target="_blank">discharging tests</a> that I ran on both pairs of batteries made things even more confusing: Vega Power performed really well, and Afik didn&#8217;t worse, but not much worse.</p>
<p>The only clear conclusion is that a UPS discharge test is required every now and then. There&#8217;s no way around this.</p>
<h3>Repeated discharging test, 22.3.24</h3>
<p>Three months later, I ran the same discharging test on the Vega Power batteries. The panic beep began after 22:10 minutes. At 31:30 minutes, the panic beep went off, and then it went on and off sporadically as the UPS&#8217; estimation for remaining time fluctuated between 3 and 6 minutes. At 33:50 minutes the panic beep became steadily on again, and at 34:20 the UPS went off.</p>
<p>In short: Three months of floating current added 6 minutes to the battery time. And an even more confused ride as the battery discharged.</p>
<h3>One more discharging test, 20.4.25</h3>
<p>A bit more than a year later, yet another test on exactly the same battery. There had been no power interruptions inbetween, so this was the first time the battery discharged. So with the GRUB menu on, the UPS claimed its load as 105W and 150VA, promising 34 minutes. The UPS held power calmly for 22 minutes, with the promised remaining time decreasing from the original 34 minutes in pace with the time elapsed. But after 22 minutes, the panic beep went on, the promised time showed one minute, and it didn&#8217;t hold even that. Power off.</p>
<p>In summary: One year later, the battery had lower capacity, but still quite reasonable. The UPS itself, however, gambled on the last figure it had at hand.</p>
<h3>Forth replacement, 28.6.25</h3>
<p>I got two Yuasa NP7-12 from <a rel="noopener" href="https://www.batteriexperten.com/" target="_blank">Batteriexperten</a> as their price was lower than others with a clear margin (about $38 each). Small terminals (F1, unfortunately, but there were no F2 available anywhere near), both marked 24110435, probably meaning they were both ~8 months old, which is reasonable.</p>
<p>Measured voltage before connecting to anything (OVC at equilibrium), room temperature:12.857V on one battery, and 12.863V on the other. With a 6 mV difference, it&#8217;s safe to assume they are equally charged. So no need nor point pre-charging them separately. Being an AGM battery, this indicates a charge level somewhere between 90-100%, in line with what one would expect from a battery of this sort and age. In other words, it&#8217;s probably fresh and in good shape.</p>
<p>I put the batteries inside the UPS and let it run for 7 days so that they would be in good shape for the test. Which I ran on 6.7.25.</p>
<p>I went for the same GRUB menu scenario, however the UPS reported 120W / 157VA this time. This is higher than the other tests, because I ran the test with a different monitor, which eats more power. The promised run time was 44 minutes (a wild guess, once again, because the UPS didn&#8217;t know what&#8217;s installed).</p>
<p>When yanking the power cord, the UPS raised its power measurement to 135W / 202VA, and the time estimate immediately went down to 37 minutes.</p>
<p>After 29 minutes, the estimation was 13 minutes left. Panic beep at 33:30, power down at 34:10 (40 seconds later). That&#8217;s the best result so far, and not all that off the estimate after the power cord was yanked. So yay to Yuasa. Let&#8217;s see how they hold with time.</p>
]]></content:encoded>
			<wfw:commentRss>https://billauer.se/blog/2021/08/ups-lead-acid-batteries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>+5V voltage feed on HDMI cables and a failing HDMI2AV converter</title>
		<link>https://billauer.se/blog/2017/12/hdmi-dvi-cable-hdmi2av/</link>
		<comments>https://billauer.se/blog/2017/12/hdmi-dvi-cable-hdmi2av/#comments</comments>
		<pubDate>Sat, 09 Dec 2017 11:44:42 +0000</pubDate>
		<dc:creator>eli</dc:creator>
				<category><![CDATA[electronics]]></category>
		<category><![CDATA[miscellaneous]]></category>

		<guid isPermaLink="false">https://billauer.se/blog/?p=5329</guid>
		<description><![CDATA[After quite a while of working perfectly well, the mini HDMI2AV module I have (in the picture above, mentioned in this post) started producing an unstable picture, and in the end a completely garbled one. It took some time to nail down this specific component in the foodchain, because there was also an HDMI splitter [...]]]></description>
			<content:encoded><![CDATA[<p><a href="https://billauer.se/blog/wp-content/uploads/2017/03/hdmi2av.jpg"><img class="aligncenter size-medium wp-image-5139" title="HDMI to AV converter  (Composite Video + Audio on RCA plugs)" src="https://billauer.se/blog/wp-content/uploads/2017/03/hdmi2av-300x240.jpg" alt="HDMI to AV converter (Composite Video + Audio on RCA plugs)" width="300" height="240" /></a></p>
<p>After quite a while of working perfectly well, the mini HDMI2AV module I have (in the picture above, mentioned in <a href="https://billauer.se/blog/2017/03/edid-hdmi2av-rca-cvbs/" target="_blank">this post</a>) started producing an unstable picture, and in the end a completely garbled one. It took some time to nail down this specific component in the foodchain, because there was also an HDMI splitter involved.</p>
<p>The problem, as it turned out, was that this module takes voltage from the HDMI plug, if such is available, instead of the dedicated power plug. In my specific setup, it seems like there was some voltage was available, but not enough to drive the device &#8212; because the HDMI plug was connected to the HDMI splitter. I suppose some internal power supply switch went into some not-here-not-there kind of situation, and eventually got some permanent damage. The other HDMI2AV unit I have didn&#8217;t work either in the same conditions, but probably didn&#8217;t reach the point of permanent damage (so it&#8217;s working right now).</p>
<p>On an HDMI connector, Pin 18 is +5V, minimum 55 mA, intended originally to feed the monitor with voltage even if it&#8217;s shut off, so its DDC (EDID) information can be obtained. Some devices (e.g. cheap HDMI splitters and HDMI to AV converters) might use this voltage instead of the supplied external voltage in some cases.</p>
<p><a href="https://billauer.se/blog/wp-content/uploads/2017/12/HDMI-connector.png"><img class="aligncenter size-medium wp-image-5330" title="HDMI connector pinout" src="https://billauer.se/blog/wp-content/uploads/2017/12/HDMI-connector-300x123.png" alt="HDMI connector pinout" width="300" height="123" /></a>Not all cables conduct this pin. It&#8217;s therefore advisable to check the cable before working with it, when the setup is more than just a direct connection. It&#8217;s not easy, even with a multimeter. Pushing a thin wire into the tiny holes at the front may give contact with the relevant pin, but this isn&#8217;t bulletproof. Possibly try with an HDMI/DVI adapter (pin 14 on a DVI connector is +5V). Or test with a device that is known to rely on this voltage (e.g. this HDMI2AV module).</p>
<p>The solution in my case was to replace the HDMI2AV module and all cables with such that don&#8217;t let the +5V wire through. In particular, it seems like the cable to the TV set (via HDMI) that went to the HDMI splitter (which connects to the HDMI2AV module on its other output) was the issue.</p>
]]></content:encoded>
			<wfw:commentRss>https://billauer.se/blog/2017/12/hdmi-dvi-cable-hdmi2av/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Pairing a mobile phone with VW RCD 510 / Kufatec Fiscon car radio</title>
		<link>https://billauer.se/blog/2016/03/vw-mk6-bluetooth-pairing/</link>
		<comments>https://billauer.se/blog/2016/03/vw-mk6-bluetooth-pairing/#comments</comments>
		<pubDate>Sat, 26 Mar 2016 13:47:19 +0000</pubDate>
		<dc:creator>eli</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[bluetooth]]></category>
		<category><![CDATA[miscellaneous]]></category>

		<guid isPermaLink="false">https://billauer.se/blog/?p=4960</guid>
		<description><![CDATA[I struggled with this a bit, and ended up doing it right by guessing. Even though I should have read the manual to begin with. So the procedure is simple (cited from manual, page 7, &#8220;Pairing&#8221;): Turn the ignition on. Make sure the Bluetooth feature of your phone is turned on. Start the pairing procedure [...]]]></description>
			<content:encoded><![CDATA[<p>I struggled with this a bit, and ended up doing it right by guessing. Even though I <a href="http://www.oemretrofits.co.uk/manuals/fiscon_vw_en.pdf" target="_blank">should have read the manual</a> to begin with.</p>
<p>So the procedure is simple (cited from manual, page 7, &#8220;Pairing&#8221;):</p>
<ol>
<li>Turn the ignition on.</li>
<li>Make sure the Bluetooth feature of your phone is turned on.</li>
<li>Start the pairing procedure on your mobile phone.</li>
<li>When prompted for a passkey, enter <strong>1234</strong> on your mobile phone</li>
</ol>
<p>The crucial hint is that nothing is expected to happen in the &#8220;Phone&#8221; any setup menu, as shown in many video tutorials.</p>
<p>So on an Android phone, open Settings &gt; Bluetooth and make it search for devices. Once it finds it, enter the 1234 passcode (it&#8217;s was actually suggested, that and 0000. So it was 1234). Don&#8217;t expect anything to happen on the car radio&#8217;s side nor the dashboard display until the phone is paired.</p>
<p>I managed to pair two phones (the manual says there are up to five allowed).</p>
]]></content:encoded>
			<wfw:commentRss>https://billauer.se/blog/2016/03/vw-mk6-bluetooth-pairing/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Sample EDID info from a few monitors (video resolution parameters)</title>
		<link>https://billauer.se/blog/2015/07/vesa-edid-parameters/</link>
		<comments>https://billauer.se/blog/2015/07/vesa-edid-parameters/#comments</comments>
		<pubDate>Sat, 04 Jul 2015 20:58:47 +0000</pubDate>
		<dc:creator>eli</dc:creator>
				<category><![CDATA[Displayport]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[miscellaneous]]></category>

		<guid isPermaLink="false">https://billauer.se/blog/?p=4717</guid>
		<description><![CDATA[On Linux machines, there&#8217;s a command saying $ xrandr --verbose which outputs a lot of information about the display, in particular the EDID information obtained from the monitor. Among others, it&#8217;s a detailed listing of the video modes that the monitor is willing to accept. These modes are usually the standard VESA graphics modes, but [...]]]></description>
			<content:encoded><![CDATA[<p>On Linux machines, there&#8217;s a command saying</p>
<pre>$ xrandr --verbose</pre>
<p>which outputs a lot of information about the display, in particular the EDID information obtained from the monitor. Among others, it&#8217;s a detailed listing of the video modes that the monitor is willing to accept. These modes are usually the standard VESA graphics modes, but there&#8217;s no guarantee that they are. But in reality, they are probably all industry standard, in particular those repeating themselves in the different dumps.</p>
<p>Also in reality, most monitors will display anything thrown at them, as long as it makes sense (or not) even if the graphics mode doesn&#8217;t appear on the list. After all, no monitor manufacturer wants the screen to be black when the competitor&#8217;s monitor shows as image.</p>
<p>So here are two such dumps. The first one is from my Lenovo Yoga 2 13&#8243; (non-pro) laptop connected to a Dell P2415Q monitor, so the first set of data relates to the laptop&#8217;s own screen, and the second set to the much better external monitor (which goes up to UHDTV at 60 fps).</p>
<p>The second set is just my desktop, which is connected to a Samsung 23&#8243; LS23ELDKF (a.k.a LED XL2370HD) monitor.</p>
<p>So the Laptop first:</p>
<pre>Screen 0: minimum 320 x 200, current 5760 x 2160, maximum 32767 x 32767
eDP1 connected primary 1920x1080+0+0 (0x47) normal (normal left inverted right x axis y axis) 293mm x 165mm
 Identifier: 0x43
 Timestamp:  3827058
 Subpixel:   unknown
 Gamma:      1.0:1.0:1.0
 Brightness: 1.0
 Clones:   
 CRTC:       0
 CRTCs:      0 1 2
 Transform:  1.000000 0.000000 0.000000
 0.000000 1.000000 0.000000
 0.000000 0.000000 1.000000
 filter:
 EDID:
 00ffffffffffff0006af2d2000000000
 00160104901d117802bc05a2554c9a25
 0e505400000001010101010101010101
 0101010101011d3680a070381e403020
 8e0025a5100000181d36800872386640
 30208e0025a510000018000000fe0041
 554f0a202020202020202020000000fe
 004231333348414e30322e30200a0043
 BACKLIGHT: 94
 range: (0, 94)
 Backlight: 94
 range: (0, 94)
 scaling mode: Full aspect
 supported: None, Full, Center, Full aspect
 Broadcast RGB: Automatic
 supported: Automatic, Full, Limited 16:235
 audio: auto
 supported: force-dvi, off, auto, on
 1920x1080 (0x47)  138.5MHz -HSync -VSync *current +preferred
 h: width  1920 start 1968 end 2000 total 2080 skew    0 clock   66.6KHz
 v: height 1080 start 1088 end 1102 total 1110           clock   60.0Hz
 1920x1080 (0xae)  138.5MHz -HSync -VSync
 h: width  1920 start 1968 end 2000 total 2440 skew    0 clock   56.8KHz
 v: height 1080 start 1088 end 1102 total 1182           clock   48.0Hz
 1920x1080 (0xaf)  138.5MHz +HSync -VSync
 h: width  1920 start 1968 end 2000 total 2080 skew    0 clock   66.6KHz
 v: height 1080 start 1083 end 1088 total 1111           clock   59.9Hz
 1680x1050 (0xb0)  146.2MHz -HSync +VSync
 h: width  1680 start 1784 end 1960 total 2240 skew    0 clock   65.3KHz
 v: height 1050 start 1053 end 1059 total 1089           clock   60.0Hz
 1680x1050 (0xb1)  119.0MHz +HSync -VSync
 h: width  1680 start 1728 end 1760 total 1840 skew    0 clock   64.7KHz
 v: height 1050 start 1053 end 1059 total 1080           clock   59.9Hz
 1600x1024 (0xb2)  103.1MHz +HSync +VSync
 h: width  1600 start 1600 end 1656 total 1664 skew    0 clock   62.0KHz
 v: height 1024 start 1024 end 1029 total 1030           clock   60.2Hz
 1400x1050 (0xb3)  122.0MHz +HSync +VSync
 h: width  1400 start 1488 end 1640 total 1880 skew    0 clock   64.9KHz
 v: height 1050 start 1052 end 1064 total 1082           clock   60.0Hz
 1280x1024 (0xb4)  108.0MHz +HSync +VSync
 h: width  1280 start 1328 end 1440 total 1688 skew    0 clock   64.0KHz
 v: height 1024 start 1025 end 1028 total 1066           clock   60.0Hz
 1440x900 (0xb5)  106.5MHz -HSync +VSync
 h: width  1440 start 1520 end 1672 total 1904 skew    0 clock   55.9KHz
 v: height  900 start  903 end  909 total  934           clock   59.9Hz
 1280x960 (0xb6)  108.0MHz +HSync +VSync
 h: width  1280 start 1376 end 1488 total 1800 skew    0 clock   60.0KHz
 v: height  960 start  961 end  964 total 1000           clock   60.0Hz
 1360x768 (0xb7)   84.8MHz -HSync +VSync
 h: width  1360 start 1432 end 1568 total 1776 skew    0 clock   47.7KHz
 v: height  768 start  771 end  781 total  798           clock   59.8Hz
 1360x768 (0xb8)   72.0MHz +HSync -VSync
 h: width  1360 start 1408 end 1440 total 1520 skew    0 clock   47.4KHz
 v: height  768 start  771 end  781 total  790           clock   60.0Hz
 1152x864 (0xb9)   81.6MHz -HSync +VSync
 h: width  1152 start 1216 end 1336 total 1520 skew    0 clock   53.7KHz
 v: height  864 start  865 end  868 total  895           clock   60.0Hz
 1024x768 (0xba)   65.0MHz -HSync -VSync
 h: width  1024 start 1048 end 1184 total 1344 skew    0 clock   48.4KHz
 v: height  768 start  771 end  777 total  806           clock   60.0Hz
 800x600 (0xbb)   40.0MHz +HSync +VSync
 h: width   800 start  840 end  968 total 1056 skew    0 clock   37.9KHz
 v: height  600 start  601 end  605 total  628           clock   60.3Hz
 800x600 (0xbc)   36.0MHz +HSync +VSync
 h: width   800 start  824 end  896 total 1024 skew    0 clock   35.2KHz
 v: height  600 start  601 end  603 total  625           clock   56.2Hz
 640x480 (0xbd)   25.2MHz -HSync -VSync
 h: width   640 start  656 end  752 total  800 skew    0 clock   31.5KHz
 v: height  480 start  490 end  492 total  525           clock   59.9Hz
HDMI1 connected 3840x2160+1920+0 (0xe3) normal (normal left inverted right x axis y axis) 527mm x 296mm
 Identifier: 0x44
 Timestamp:  3827058
 Subpixel:   unknown
 Gamma:      1.0:1.0:1.0
 Brightness: 1.0
 Clones:   
 CRTC:       1
 CRTCs:      0 1 2
 Transform:  1.000000 0.000000 0.000000
 0.000000 1.000000 0.000000
 0.000000 0.000000 1.000000
 filter:
 EDID:
 00ffffffffffff0010acc0a04c553630
 2d18010380351e78eae245a8554da326
 0b5054a54b00714f8180a9c0a940d1c0
 e10001010101a36600a0f0701f803020
 35000f282100001a000000ff00503250
 43323442343036554c0a000000fc0044
 454c4c205032343135510a20000000fd
 001d4c1e8c1e000a2020202020200196
 02032af15390050402071601141f1213
 2720212203061115230907076d030c00
 1000303c200060030201023a80187138
 2d40582c25000f282100001f011d8018
 711c1620582c25000f282100009e0474
 0030f2705a80b0588a000f282100001e
 565e00a0a0a02950302035000f282100
 001a00000000000000000000000000f9
 Broadcast RGB: Automatic
 supported: Automatic, Full, Limited 16:235
 audio: auto
 supported: force-dvi, off, auto, on
 3840x2160 (0xe3)  262.8MHz +HSync -VSync *current +preferred
 h: width  3840 start 3888 end 3920 total 4000 skew    0 clock   65.7KHz
 v: height 2160 start 2163 end 2168 total 2191           clock   30.0Hz
 3840x2160 (0xe4)  297.0MHz +HSync +VSync
 h: width  3840 start 4016 end 4104 total 4400 skew    0 clock   67.5KHz
 v: height 2160 start 2168 end 2178 total 2250           clock   30.0Hz
 3840x2160 (0xe5)  297.0MHz +HSync +VSync
 h: width  3840 start 4896 end 4984 total 5280 skew    0 clock   56.2KHz
 v: height 2160 start 2168 end 2178 total 2250           clock   25.0Hz
 3840x2160 (0xe6)  297.0MHz +HSync +VSync
 h: width  3840 start 5116 end 5204 total 5500 skew    0 clock   54.0KHz
 v: height 2160 start 2168 end 2178 total 2250           clock   24.0Hz
 3840x2160 (0xe7)  296.7MHz +HSync +VSync
 h: width  3840 start 4016 end 4104 total 4400 skew    0 clock   67.4KHz
 v: height 2160 start 2168 end 2178 total 2250           clock   30.0Hz
 3840x2160 (0xe8)  296.7MHz +HSync +VSync
 h: width  3840 start 5116 end 5204 total 5500 skew    0 clock   53.9KHz
 v: height 2160 start 2168 end 2178 total 2250           clock   24.0Hz
 2560x1440 (0xe9)  241.5MHz +HSync -VSync
 h: width  2560 start 2608 end 2640 total 2720 skew    0 clock   88.8KHz
 v: height 1440 start 1443 end 1448 total 1481           clock   60.0Hz
 2048x1280 (0xea)  221.3MHz -HSync +VSync
 h: width  2048 start 2192 end 2416 total 2784 skew    0 clock   79.5KHz
 v: height 1280 start 1281 end 1284 total 1325           clock   60.0Hz
 1920x1080 (0xeb)  148.5MHz +HSync +VSync
 h: width  1920 start 2008 end 2052 total 2200 skew    0 clock   67.5KHz
 v: height 1080 start 1082 end 1087 total 1125           clock   60.0Hz
 1920x1080 (0xec)  148.5MHz +HSync +VSync
 h: width  1920 start 2008 end 2052 total 2200 skew    0 clock   67.5KHz
 v: height 1080 start 1084 end 1089 total 1125           clock   60.0Hz
 1920x1080 (0xed)  148.5MHz +HSync +VSync
 h: width  1920 start 2448 end 2492 total 2640 skew    0 clock   56.2KHz
 v: height 1080 start 1084 end 1089 total 1125           clock   50.0Hz
 1920x1080 (0xee)  148.4MHz +HSync +VSync
 h: width  1920 start 2008 end 2052 total 2200 skew    0 clock   67.4KHz
 v: height 1080 start 1084 end 1089 total 1125           clock   59.9Hz
 1920x1080i (0xef)   74.2MHz +HSync +VSync Interlace
 h: width  1920 start 2008 end 2052 total 2200 skew    0 clock   33.8KHz
 v: height 1080 start 1084 end 1094 total 1125           clock   60.1Hz
 1920x1080i (0xf0)   74.2MHz +HSync +VSync Interlace
 h: width  1920 start 2448 end 2492 total 2640 skew    0 clock   28.1KHz
 v: height 1080 start 1084 end 1094 total 1125           clock   50.0Hz
 1920x1080 (0xf1)   74.2MHz +HSync +VSync
 h: width  1920 start 2008 end 2052 total 2200 skew    0 clock   33.8KHz
 v: height 1080 start 1084 end 1089 total 1125           clock   30.0Hz
 1920x1080 (0xf2)   74.2MHz +HSync +VSync
 h: width  1920 start 2448 end 2492 total 2640 skew    0 clock   28.1KHz
 v: height 1080 start 1084 end 1089 total 1125           clock   25.0Hz
 1920x1080 (0xf3)   74.2MHz +HSync +VSync
 h: width  1920 start 2558 end 2602 total 2750 skew    0 clock   27.0KHz
 v: height 1080 start 1084 end 1089 total 1125           clock   24.0Hz
 1920x1080i (0xf4)   74.2MHz +HSync +VSync Interlace
 h: width  1920 start 2008 end 2052 total 2200 skew    0 clock   33.7KHz
 v: height 1080 start 1084 end 1094 total 1125           clock   60.0Hz
 1920x1080 (0xf5)   74.2MHz +HSync +VSync
 h: width  1920 start 2008 end 2052 total 2200 skew    0 clock   33.7KHz
 v: height 1080 start 1084 end 1089 total 1125           clock   30.0Hz
 1920x1080 (0xf6)   74.2MHz +HSync +VSync
 h: width  1920 start 2558 end 2602 total 2750 skew    0 clock   27.0KHz
 v: height 1080 start 1084 end 1089 total 1125           clock   24.0Hz
 1920x1080i (0xf7)   72.0MHz +HSync -VSync Interlace
 h: width  1920 start 1952 end 2120 total 2304 skew    0 clock   31.2KHz
 v: height 1080 start 1126 end 1136 total 1250           clock   50.0Hz
 1600x1200 (0xf8)  162.0MHz +HSync +VSync
 h: width  1600 start 1664 end 1856 total 2160 skew    0 clock   75.0KHz
 v: height 1200 start 1201 end 1204 total 1250           clock   60.0Hz
 1600x900 (0xf9)  119.0MHz -HSync +VSync
 h: width  1600 start 1696 end 1864 total 2128 skew    0 clock   55.9KHz
 v: height  900 start  901 end  904 total  932           clock   60.0Hz
 1280x1024 (0xfa)  135.0MHz +HSync +VSync
 h: width  1280 start 1296 end 1440 total 1688 skew    0 clock   80.0KHz
 v: height 1024 start 1025 end 1028 total 1066           clock   75.0Hz
 1280x1024 (0xb4)  108.0MHz +HSync +VSync
 h: width  1280 start 1328 end 1440 total 1688 skew    0 clock   64.0KHz
 v: height 1024 start 1025 end 1028 total 1066           clock   60.0Hz
 1152x864 (0xfb)  108.0MHz +HSync +VSync
 h: width  1152 start 1216 end 1344 total 1600 skew    0 clock   67.5KHz
 v: height  864 start  865 end  868 total  900           clock   75.0Hz
 1280x720 (0xfc)   74.2MHz +HSync +VSync
 h: width  1280 start 1390 end 1430 total 1650 skew    0 clock   45.0KHz
 v: height  720 start  725 end  730 total  750           clock   60.0Hz
 1280x720 (0xfd)   74.2MHz +HSync +VSync
 h: width  1280 start 1720 end 1760 total 1980 skew    0 clock   37.5KHz
 v: height  720 start  725 end  730 total  750           clock   50.0Hz
 1280x720 (0xfe)   74.2MHz +HSync +VSync
 h: width  1280 start 1390 end 1430 total 1650 skew    0 clock   45.0KHz
 v: height  720 start  725 end  730 total  750           clock   59.9Hz
 1440x576i (0xff)   27.0MHz -HSync -VSync Interlace
 h: width  1440 start 1464 end 1590 total 1728 skew    0 clock   15.6KHz
 v: height  576 start  580 end  586 total  625           clock   50.1Hz
 1024x768 (0x100)   78.8MHz +HSync +VSync
 h: width  1024 start 1040 end 1136 total 1312 skew    0 clock   60.1KHz
 v: height  768 start  769 end  772 total  800           clock   75.1Hz
 1024x768 (0xba)   65.0MHz -HSync -VSync
 h: width  1024 start 1048 end 1184 total 1344 skew    0 clock   48.4KHz
 v: height  768 start  771 end  777 total  806           clock   60.0Hz
 1440x480i (0x101)   27.0MHz -HSync -VSync Interlace
 h: width  1440 start 1478 end 1602 total 1716 skew    0 clock   15.8KHz
 v: height  480 start  488 end  494 total  525           clock   60.1Hz
 1440x480i (0x102)   27.0MHz -HSync -VSync Interlace
 h: width  1440 start 1478 end 1602 total 1716 skew    0 clock   15.7KHz
 v: height  480 start  488 end  494 total  525           clock   60.1Hz
 800x600 (0x103)   49.5MHz +HSync +VSync
 h: width   800 start  816 end  896 total 1056 skew    0 clock   46.9KHz
 v: height  600 start  601 end  604 total  625           clock   75.0Hz
 800x600 (0xbb)   40.0MHz +HSync +VSync
 h: width   800 start  840 end  968 total 1056 skew    0 clock   37.9KHz
 v: height  600 start  601 end  605 total  628           clock   60.3Hz
 720x576 (0x104)   27.0MHz -HSync -VSync
 h: width   720 start  732 end  796 total  864 skew    0 clock   31.2KHz
 v: height  576 start  581 end  586 total  625           clock   50.0Hz
 720x480 (0x105)   27.0MHz -HSync -VSync
 h: width   720 start  736 end  798 total  858 skew    0 clock   31.5KHz
 v: height  480 start  489 end  495 total  525           clock   60.0Hz
 720x480 (0x106)   27.0MHz -HSync -VSync
 h: width   720 start  736 end  798 total  858 skew    0 clock   31.5KHz
 v: height  480 start  489 end  495 total  525           clock   59.9Hz
 640x480 (0x107)   31.5MHz -HSync -VSync
 h: width   640 start  656 end  720 total  840 skew    0 clock   37.5KHz
 v: height  480 start  481 end  484 total  500           clock   75.0Hz
 640x480 (0x108)   25.2MHz -HSync -VSync
 h: width   640 start  656 end  752 total  800 skew    0 clock   31.5KHz
 v: height  480 start  490 end  492 total  525           clock   60.0Hz
 640x480 (0xbd)   25.2MHz -HSync -VSync
 h: width   640 start  656 end  752 total  800 skew    0 clock   31.5KHz
 v: height  480 start  490 end  492 total  525           clock   59.9Hz
 720x400 (0x109)   28.3MHz -HSync +VSync
 h: width   720 start  738 end  846 total  900 skew    0 clock   31.5KHz
 v: height  400 start  412 end  414 total  449           clock   70.1Hz
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
 Identifier: 0x45
 Timestamp:  3827058
 Subpixel:   no subpixels
 Clones:   
 CRTCs:      3
 Transform:  1.000000 0.000000 0.000000
 0.000000 1.000000 0.000000
 0.000000 0.000000 1.000000
 filter:</pre>
<p>And the Samsung monitor:</p>
<pre>Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192
VGA-0 disconnected (normal left inverted right x axis y axis)
 Identifier: 0x51
 Timestamp:  110079
 Subpixel:   no subpixels
 Clones:   
 CRTCs:      0 1
 Transform:  1.000000 0.000000 0.000000
 0.000000 1.000000 0.000000
 0.000000 0.000000 1.000000
 filter:
 load detection: 1 (0x00000001)    range:  (0,1)
HDMI-0 disconnected (normal left inverted right x axis y axis)
 Identifier: 0x52
 Timestamp:  110079
 Subpixel:   horizontal rgb
 Clones:   
 CRTCs:      0 1
 Transform:  1.000000 0.000000 0.000000
 0.000000 1.000000 0.000000
 0.000000 0.000000 1.000000
 filter:
 audio:    off
 supported: off          on           auto       
 underscan vborder: 0 (0x00000000)    range:  (0,128)
 underscan hborder: 0 (0x00000000)    range:  (0,128)
 underscan:    off
 supported: off          on           auto       
 coherent: 1 (0x00000001)    range:  (0,1)
DVI-0 connected 1920x1080+0+0 (0x54) normal (normal left inverted right x axis y axis) 510mm x 287mm
 Identifier: 0x53
 Timestamp:  110079
 Subpixel:   horizontal rgb
 Clones:   
 CRTC:       0
 CRTCs:      0 1
 Transform:  1.000000 0.000000 0.000000
 0.000000 1.000000 0.000000
 0.000000 0.000000 1.000000
 filter:
 EDID:
 00ffffffffffff004c2d2a0733323037
 0e14010380331d782a81f1a357539f27
 0a5054bfef8081009500b3008140714f
 8180a940950f023a801871382d40582c
 4500fe1f1100001e000000fd00384b1e
 5111000a202020202020000000fc0053
 4d584c3233373048440a2020000000ff
 004831414b3530303030300a202000a1
 load detection: 1 (0x00000001)    range:  (0,1)
 audio:    off
 supported: off          on           auto       
 underscan vborder: 0 (0x00000000)    range:  (0,128)
 underscan hborder: 0 (0x00000000)    range:  (0,128)
 underscan:    off
 supported: off          on           auto       
 coherent: 1 (0x00000001)    range:  (0,1)
 1920x1080 (0x54)  148.5MHz +HSync +VSync *current +preferred
 h: width  1920 start 2008 end 2052 total 2200 skew    0 clock   67.5KHz
 v: height 1080 start 1084 end 1089 total 1125           clock   60.0Hz
 1600x1200 (0x55)  162.0MHz +HSync +VSync
 h: width  1600 start 1664 end 1856 total 2160 skew    0 clock   75.0KHz
 v: height 1200 start 1201 end 1204 total 1250           clock   60.0Hz
 1680x1050 (0x56)  119.0MHz +HSync -VSync
 h: width  1680 start 1728 end 1760 total 1840 skew    0 clock   64.7KHz
 v: height 1050 start 1053 end 1059 total 1080           clock   59.9Hz
 1280x1024 (0x57)  135.0MHz +HSync +VSync
 h: width  1280 start 1296 end 1440 total 1688 skew    0 clock   80.0KHz
 v: height 1024 start 1025 end 1028 total 1066           clock   75.0Hz
 1280x1024 (0x58)  108.0MHz +HSync +VSync
 h: width  1280 start 1328 end 1440 total 1688 skew    0 clock   64.0KHz
 v: height 1024 start 1025 end 1028 total 1066           clock   60.0Hz
 1440x900 (0x59)  136.8MHz -HSync +VSync
 h: width  1440 start 1536 end 1688 total 1936 skew    0 clock   70.6KHz
 v: height  900 start  903 end  909 total  942           clock   75.0Hz
 1440x900 (0x5a)   88.8MHz +HSync -VSync
 h: width  1440 start 1488 end 1520 total 1600 skew    0 clock   55.5KHz
 v: height  900 start  903 end  909 total  926           clock   59.9Hz
 1280x960 (0x5b)  108.0MHz +HSync +VSync
 h: width  1280 start 1376 end 1488 total 1800 skew    0 clock   60.0KHz
 v: height  960 start  961 end  964 total 1000           clock   60.0Hz
 1280x800 (0x5c)   71.0MHz +HSync -VSync
 h: width  1280 start 1328 end 1360 total 1440 skew    0 clock   49.3KHz
 v: height  800 start  803 end  809 total  823           clock   59.9Hz
 1152x864 (0x5d)  108.0MHz +HSync +VSync
 h: width  1152 start 1216 end 1344 total 1600 skew    0 clock   67.5KHz
 v: height  864 start  865 end  868 total  900           clock   75.0Hz
 1024x768 (0x5e)   78.8MHz +HSync +VSync
 h: width  1024 start 1040 end 1136 total 1312 skew    0 clock   60.1KHz
 v: height  768 start  769 end  772 total  800           clock   75.1Hz
 1024x768 (0x5f)   75.0MHz -HSync -VSync
 h: width  1024 start 1048 end 1184 total 1328 skew    0 clock   56.5KHz
 v: height  768 start  771 end  777 total  806           clock   70.1Hz
 1024x768 (0x60)   65.0MHz -HSync -VSync
 h: width  1024 start 1048 end 1184 total 1344 skew    0 clock   48.4KHz
 v: height  768 start  771 end  777 total  806           clock   60.0Hz
 832x624 (0x61)   57.3MHz -HSync -VSync
 h: width   832 start  864 end  928 total 1152 skew    0 clock   49.7KHz
 v: height  624 start  625 end  628 total  667           clock   74.6Hz
 800x600 (0x62)   50.0MHz +HSync +VSync
 h: width   800 start  856 end  976 total 1040 skew    0 clock   48.1KHz
 v: height  600 start  637 end  643 total  666           clock   72.2Hz
 800x600 (0x63)   49.5MHz +HSync +VSync
 h: width   800 start  816 end  896 total 1056 skew    0 clock   46.9KHz
 v: height  600 start  601 end  604 total  625           clock   75.0Hz
 800x600 (0x64)   40.0MHz +HSync +VSync
 h: width   800 start  840 end  968 total 1056 skew    0 clock   37.9KHz
 v: height  600 start  601 end  605 total  628           clock   60.3Hz
 800x600 (0x65)   36.0MHz +HSync +VSync
 h: width   800 start  824 end  896 total 1024 skew    0 clock   35.2KHz
 v: height  600 start  601 end  603 total  625           clock   56.2Hz
 640x480 (0x66)   31.5MHz -HSync -VSync
 h: width   640 start  656 end  720 total  840 skew    0 clock   37.5KHz
 v: height  480 start  481 end  484 total  500           clock   75.0Hz
 640x480 (0x67)   31.5MHz -HSync -VSync
 h: width   640 start  664 end  704 total  832 skew    0 clock   37.9KHz
 v: height  480 start  489 end  491 total  520           clock   72.8Hz
 640x480 (0x68)   30.2MHz -HSync -VSync
 h: width   640 start  704 end  768 total  864 skew    0 clock   35.0KHz
 v: height  480 start  483 end  486 total  525           clock   66.7Hz
 640x480 (0x69)   25.2MHz -HSync -VSync
 h: width   640 start  656 end  752 total  800 skew    0 clock   31.5KHz
 v: height  480 start  490 end  492 total  525           clock   60.0Hz
 720x400 (0x6a)   28.3MHz -HSync +VSync
 h: width   720 start  738 end  846 total  900 skew    0 clock   31.5KHz
 v: height  400 start  412 end  414 total  449           clock   70.1H</pre>
<p>Just in case this is helpful to anyone&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>https://billauer.se/blog/2015/07/vesa-edid-parameters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vacuum your CPU: When cooling suddenly doesn&#8217;t work anymore</title>
		<link>https://billauer.se/blog/2014/03/cpu-cooling-dust/</link>
		<comments>https://billauer.se/blog/2014/03/cpu-cooling-dust/#comments</comments>
		<pubDate>Tue, 25 Mar 2014 15:23:27 +0000</pubDate>
		<dc:creator>eli</dc:creator>
				<category><![CDATA[miscellaneous]]></category>

		<guid isPermaLink="false">https://billauer.se/blog/?p=4169</guid>
		<description><![CDATA[So I compiled a Linux kernel with 8 threads in parallel on my Linux desktop machine, as I always do. The CPU worked extra hard as usual, but lately its temperature began to rise, ending up at 88°C. It looks like a clock gating mechanism kicked in to save the CPU. But hey, this never [...]]]></description>
			<content:encoded><![CDATA[<p>So I compiled a Linux kernel with 8 threads in parallel on my Linux desktop machine, as I always do. The CPU worked extra hard as usual, but lately its temperature began to rise, ending up at 88°C. It looks like a clock gating mechanism kicked in to save the CPU.</p>
<p>But hey, this never happened in the past! Asking a round a bit, I was advised to check if the fan is OK. Maybe the thermal paste went dry.</p>
<p>Opening the case and looking, I noticed that the heatsink was full with dust. More precisely, a lot of dust was stuck between the heatsink&#8217;s grill blades, obstructing the air flow. No air flow, no cooling. So I unsnapped the fan off the heatsink, took a vacuum cleaner, and removed all dust.</p>
<p>And my PC is like new now! The temperature goes from 30.0°C to no more than 44.0°C when I run that kernel compilation test (watching the temperature with &#8220;watch sensors&#8221; at shell prompt).</p>
<p>It was that simple.</p>
<p>Note to self: Vacuum the CPU&#8217;s heatsink every now and then.</p>
<p>And here&#8217;s what it looks like after two years, during which the computer has been on continuously (click on images to enlarge):</p>
<p><a href="https://billauer.se/blog/wp-content/uploads/2014/03/vacuum_your_pc_1.jpg"><img class="aligncenter size-medium wp-image-4924" title="Heat sink and fan, before cleaning up dust" src="https://billauer.se/blog/wp-content/uploads/2014/03/vacuum_your_pc_1-300x200.jpg" alt="Heat sink and fan, before cleaning up dust" width="300" height="200" /></a></p>
<p>And this is with the fan taken off. One can clearly see that the layer of dust disrupts the air flow.</p>
<p><a href="https://billauer.se/blog/wp-content/uploads/2014/03/vacuum_your_pc_2.jpg"><img class="aligncenter size-medium wp-image-4925" title="Heat sink,  fan taken off, before cleaning up dust" src="https://billauer.se/blog/wp-content/uploads/2014/03/vacuum_your_pc_2-300x200.jpg" alt="Heat sink,  fan taken off, before cleaning up dust" width="300" height="200" /></a>A minute with the vacuum cleaner, and we have</p>
<p><a href="https://billauer.se/blog/wp-content/uploads/2014/03/vacuum_your_pc_3.jpg"><img class="aligncenter size-medium wp-image-4926" title="Heat sink,  fan taken off, after cleaning up dust" src="https://billauer.se/blog/wp-content/uploads/2014/03/vacuum_your_pc_3-300x200.jpg" alt="Heat sink,  fan taken off, after cleaning up dust" width="300" height="200" /></a>Snap the fan back in place, and the computer is ready to go!</p>
<p><a href="https://billauer.se/blog/wp-content/uploads/2014/03/vacuum_your_pc_4.jpg"><img class="aligncenter size-medium wp-image-4927" title="Heat sink + fan taken, after cleaning up dust, ready to go" src="https://billauer.se/blog/wp-content/uploads/2014/03/vacuum_your_pc_4-300x200.jpg" alt="Heat sink + fan taken, after cleaning up dust, ready to go" width="300" height="200" /></a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>https://billauer.se/blog/2014/03/cpu-cooling-dust/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mini DV MD80 thumb camera: Usage notes with Fedora 12</title>
		<link>https://billauer.se/blog/2013/01/mini-dv-camera-linux-mjpeg/</link>
		<comments>https://billauer.se/blog/2013/01/mini-dv-camera-linux-mjpeg/#comments</comments>
		<pubDate>Thu, 31 Jan 2013 15:36:40 +0000</pubDate>
		<dc:creator>eli</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[miscellaneous]]></category>

		<guid isPermaLink="false">https://billauer.se/blog/?p=3399</guid>
		<description><![CDATA[So I bought this $10 mini DV camera on EBay. Since the user&#8217;s manual is pretty out of sync with itself and the product (Chinese and English doesn&#8217;t match, even by looking at the specification and drawings) I&#8217;ve written down some basic howto, in case I need to remember what to do at a later [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-3417" title="dv-camera" src="https://billauer.se/blog/wp-content/uploads/2013/01/dv-camera.jpg" alt="" width="300" height="280" />So I bought this $10 mini DV camera on EBay. Since the user&#8217;s manual is pretty out of sync with itself and the product (Chinese and English doesn&#8217;t match, even by looking at the specification and drawings) I&#8217;ve written down some basic howto, in case I need to remember what to do at a later stage.</p>
<p>I can&#8217;t say I&#8217;m disappointed, because I didn&#8217;t really expect things to work as specified on a $10 camera.</p>
<p>Even though the manual promises 70 minutes of recording time, I got 48  minutes in reality before the camera stopped itself (the memory card wasn&#8217;t  full, it was the battery that ran out).</p>
<p>Note that a MicroSD card needs to be purchased separately, which will cost significantly relative to the camera&#8217;s price (some $8 in a store, possibly $4 on EBay for a Sandisk card). The largest file I managed to obtain with a 48 minutes recording was 1.7 GB, so a 2 GB card is probably large enough.</p>
<h3>LED colors</h3>
<p>It looks like the LED colors were changed since the manual was written. The blue LED is the power LED, indicating that the device is on. The red LED says something is happening.</p>
<h3>Optics and image quality</h3>
<p>The image is a 720x480, apparently progressive (non-interlaced) rolling shutter with a noise level that resembles web cameras from the late 90&#8242;s. The measured opening angle on the frame&#8217;s width was as narrow as 25 degrees which, I suppose is about 80mm focal length on a 35mm-equivalent scale. In other words, this is with a slight touch of a tele lens.</p>
<p>The camera was announced having an 80 degrees view angle by its EBay seller, which turned out to be wrong. The narrow angle is a problem for most relevant applications, since it the desired subject gets off-frame easily. It&#8217;s also the reason for the shaky footage this camera emits. I&#8217;m not even sure about using this as a helmet camera.</p>
<p>With a $1 <a href="http://www.amazon.com/HDE%C2%AE-Jelly-Angle-Camera-Phone/dp/B0096DNQM6" target="_blank">Jelly Lens</a>, the angle of view rises to 40 degrees, which is around 50mm focal length (on a 35mm scale). In other words, the extra lens is some x0.6 (not very impressive, but what did I expect from a $1 lens?) and it gives the camera a &#8220;normal&#8221; focal length. The sticky adhesive on the jelly lens held the very small piece of plastic firmly in place. I don&#8217;t know how well this would work on a helmet cam, though. Did I say $1?</p>
<p>I should mention, that for a cellular phone with an already pretty wide angle, this Jelly Lens actually achieves an impressive wide angle (and green visible borders). So it&#8217;s a very good deal, given its price&#8230;</p>
<p>Another lens tried out was the <a href="http://www.amazon.com/AGPtek-Magnetic-Degree-Fisheye-Designed/dp/B0073C0QGG/" target="_blank">AGPtek &#8220;180 Degrees&#8221;</a> lens for cellular phones for some $5. It is often announced as x0.28, but it&#8217;s not. My measurement was 53 degrees, which is about 36 mm focal length (on a 35mm scale), so the lens did in fact x0.45. Better than the Jelly Lens, but by far not as good as expected. It does have a slight roundoff in the corners like a fish-eye lens at 53 degrees view angle, which gives the illusion that it&#8217;s wider than it actually is.</p>
<h3>Charging</h3>
<p>Connect the camera to a computer via USB, so it gets power. The blue LED goes on, and the red LED starts blinking. According to the user&#8217;s manual, a green LED should be blinking, but it looks like the color was changed to red. The user&#8217;s manual also says that the LED should stop blinking when the battery is charged, but that didn&#8217;t happen even after an overnight charging. It just went on blinking (red). According to the seller at EBay, the charging time should be 3 hours. Go figure.</p>
<p>Note that the MicroSD is mounted on the computer due to the USB connection.</p>
<h3>Accessing the MicroSD card</h3>
<p>Well, simply connect to the computer (as in for charging). The following (or similar) will appear at the log:</p>
<pre>Jan 31 17:54:27 myhost kernel: hub 1-2:1.0: unable to enumerate USB device on port 2
Jan 31 17:54:29 myhost kernel: usb 1-2.2: new high speed USB device using ehci_hcd and address 62
Jan 31 17:54:29 myhost kernel: usb 1-2.2: New USB device found, idVendor=04d6, idProduct=e101
Jan 31 17:54:29 myhost kernel: usb 1-2.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jan 31 17:54:29 myhost kernel: usb 1-2.2: Product: usbdisk  
Jan 31 17:54:29 myhost kernel: usb 1-2.2: Manufacturer: anyka    
Jan 31 17:54:29 myhost kernel: usb 1-2.2: SerialNumber: 942954944
Jan 31 17:54:29 myhost kernel: scsi102 : usb-storage 1-2.2:1.0
Jan 31 17:54:30 myhost kernel: scsi 102:0:0:0: Direct-Access     anyka    MMC Disk         1.00 PQ: 0 ANSI: 2
Jan 31 17:54:30 myhost kernel: sd 102:0:0:0: Attached scsi generic sg4 type 0
Jan 31 17:54:30 myhost kernel: sd 102:0:0:0: [sdd] 3858560 512-byte logical blocks: (1.97 GB/1.83 GiB)
Jan 31 17:54:30 myhost kernel: sd 102:0:0:0: [sdd] Write Protect is off
Jan 31 17:54:30 myhost kernel: sd 102:0:0:0: [sdd] Assuming drive cache: write through
Jan 31 17:54:30 myhost kernel: sd 102:0:0:0: [sdd] Assuming drive cache: write through
Jan 31 17:54:30 myhost kernel: sdd:
Jan 31 17:54:30 myhost kernel: sd 102:0:0:0: [sdd] Assuming drive cache: write through
Jan 31 17:54:30 myhost kernel: sd 102:0:0:0: [sdd] Attached SCSI removable disk</pre>
<p>This is just like connecting a disk-on-key, and so is the access to the content.</p>
<h3>Using as a webcam</h3>
<p>This is useful for getting an idea of the image quality, and immediate feedback for aiming the camera properly.</p>
<p>With the camera connected via USB (and hence the MicroSD card mounted), unmount the volume (&#8220;Safely Remove Drive&#8221; or something) and press the camera&#8217;s Power button for three seconds or so. The red LED will stop blinking, and the blue remains steadily on. The following lines in the log indicate the transformation into a web cam:</p>
<pre>Jan 31 17:55:20 myhost kernel: usb 1-2.2: USB disconnect, address 62
Jan 31 17:55:21 myhost gnome-keyring-daemon[28416]: removing removable location: /media/New flash
Jan 31 17:55:21 myhost gnome-keyring-daemon[28416]: no volume registered at: /media/New flash
Jan 31 17:55:21 myhost gnome-keyring-daemon[3139]: removing removable location: /media/New flash
Jan 31 17:55:21 myhost gnome-keyring-daemon[3139]: no volume registered at: /media/New flash
Jan 31 17:55:23 myhost kernel: usb 1-2.2: new high speed USB device using ehci_hcd and address 63
Jan 31 17:55:23 myhost kernel: usb 1-2.2: New USB device found, idVendor=04d6, idProduct=e102
Jan 31 17:55:23 myhost kernel: usb 1-2.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jan 31 17:55:23 myhost kernel: usb 1-2.2: Product: UVC..
Jan 31 17:55:23 myhost kernel: usb 1-2.2: Manufacturer: ANYKA
Jan 31 17:55:23 myhost kernel: usb 1-2.2: SerialNumber: 12345
Jan 31 17:55:23 myhost kernel: uvcvideo: Found UVC 1.00 device UVC.. (04d6:e102)
Jan 31 17:55:23 myhost kernel: uvcvideo: UVC non compliance - GET_DEF(PROBE) not supported. Enabling workaround.
Jan 31 17:55:23 myhost kernel: input: UVC.. as /devices/pci0000:00/0000:00:1a.7/usb1/1-2/1-2.2/1-2.2:1.0/input/input13</pre>
<p>The last row indicates the generation of /dev/video0:</p>
<pre>$ ls -l /dev/video0
crw-rw----+ 1 root video 81, 0 2013-01-31 17:55 /dev/video0</pre>
<p>It&#8217;s important to start doing something with the webcam soon, or the camera goes into sleep mode. Running Cheese Webcam Booth (2.28.1) shows an immediate image. No configuration should be necessary (it should find /dev/video0 automatically).</p>
<h3>Using as a stand-alone camera</h3>
<p>According to the manual, the camera has two modes: Normal recording and audio-triggered. I haven&#8217;t tried the audio-triggered mode, and neither do I want to. To switch from one mode to another, there&#8217;s the &#8220;Mode&#8221; button. Which I&#8217;m not touching.</p>
<p>Needless to say, a MicroSD card must be inserted for this to work.</p>
<p>To start, make sure that the device is disconnected from the computer and off (no LED is on). Press the Power button for a second, wait a few seconds. Only the blue LED should lit steadily.</p>
<p>To start and stop recording, press the button on the camera&#8217;s short edge (next to the record/stop symbols). The red LED will blink at 0.5 Hz during recording.</p>
<p>If the &#8220;Mode&#8221; button is pressed, the red LED will blink at 2-3 Hz to indicate audio-triggered recording. Turning the camera off and on is the best way to make sure the camera is at a known state.</p>
<h3>Playback</h3>
<p>The video files are put in the &#8220;VIDEO&#8221; subdirectory. A typical playback session with mplayer looks like this:</p>
<pre>$ mplayer "/media/New Flash/VIDEO/2012-9-21 18-26-54.AVI"
MPlayer SVN-r31628-4.4.4 (C) 2000-2010 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing /media/New Flash/VIDEO/2012-9-21 18-26-54.AVI.
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO:  [MJPG]  720x480  24bpp  30.000 fps  2449.9 kbps (299.1 kbyte/s)
Clip info:
 Software: ankarec
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
[vdpau] Error when calling vdp_device_create_x11: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmjpeg] vfm: ffmpeg (FFmpeg MJPEG)
==========================================================================
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 8000 Hz, 1 ch, s16le, 128.0 kbit/100.00% (ratio: 16000-&gt;16000)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
AO: [pulse] 8000Hz 1ch s16le (2 bytes per sample)
Starting playback...
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 720x480 =&gt; 720x480 Planar YV12
A:   3.0 V:   3.0 A-V:  0.001 ct:  0.002  92/ 92  5%  0%  0.1% 0 0</pre>
<p>The video format is MJPEG 720x480 (not sure about the aspect ratio) with uncompressed 16 bit per sample mono sound, at 8 kHz sample rate. The file name represents the time at which recording began.</p>
<p>A small timestamp appears at the lower right of the recorded image.</p>
<h3>Setting the time</h3>
<p>This is somewhat confusing. The way to set the time, is to create a file called time.txt in the card&#8217;s root directory. To make things a bit complicated, the camera creates a file called TIME.TXT in the same place, with a timestamp sample (or something). Editing this file will do nothing. It&#8217;s a new file that needs to be created with something like</p>
<pre>$ vi "/media/New Flash/time.txt"</pre>
<p>It looks like the file appears from nowhere, with a sample timestamp (2012-09-21 17:08:56) set. Update it to something like</p>
<pre>2013-01-31 19:45:00</pre>
<p>or write it from scratch if nothing appears. Write and quit vi. Unmount the volume, unplug the camera, and turn it off. The camera will update the time to the file&#8217;s content when it starts up the next time.</p>
<p>There&#8217;s a null-character in the end in the sample timestamp. It can be omitted or left. Doesn&#8217;t matter.</p>
<h3>Conclusion</h3>
<p>Pretty much expected, it&#8217;s a piece of junk with poor documentation. Otherwise, it wouldn&#8217;t go for $10. But it&#8217;s good for putting in places where it has a good chance to get lost or destroyed, and hopefully get some cool footage when put on a helmet or something like that.</p>
]]></content:encoded>
			<wfw:commentRss>https://billauer.se/blog/2013/01/mini-dv-camera-linux-mjpeg/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Nokia 6267 restarting itself and how I got around it</title>
		<link>https://billauer.se/blog/2011/04/nokia-6267-restart-reboot-flash/</link>
		<comments>https://billauer.se/blog/2011/04/nokia-6267-restart-reboot-flash/#comments</comments>
		<pubDate>Mon, 04 Apr 2011 19:48:15 +0000</pubDate>
		<dc:creator>eli</dc:creator>
				<category><![CDATA[miscellaneous]]></category>

		<guid isPermaLink="false">https://billauer.se/blog/?p=1045</guid>
		<description><![CDATA[I know, I know. I have a very old cellular phone. But since I have enough electronic toys, I couldn&#8217;t care less about turning my phone into one. And it happens to be a good one. Everything was OK until it failed to start. Or more precisely, it started, and then restarted itself. Like this: [...]]]></description>
			<content:encoded><![CDATA[<p>I know, I know. I have a very old cellular phone. But since I have enough electronic toys, I couldn&#8217;t care less about turning my phone into one. And it happens to be a good one.</p>
<p>Everything was OK until it failed to start. Or more precisely, it started, and then restarted itself. Like this:</p>
<p><iframe title="YouTube video player" width="480" height="390" src="http://www.youtube.com/embed/uNGOImuRYsY" frameborder="0" allowfullscreen></iframe></p>
<p>And again. And again. It turned out that a defective MicroSD flash card caused it to go crazy. So I replaced the card, and everything looked fine again. But then it had a horrible relapse: It went back to this restarting pattern again, but this time it didn&#8217;t help to take out the MicroSD card. What turned out to be really bad, was that it was impossible to connect it to a computer through USB for backup, because it would restart all the time.</p>
<p>It wasn&#8217;t a power supply thing. I learned that from the fact, that when the phone was started without a SIM, it asked me whether it should start the phone even so. And it didn&#8217;t restart as long as I didn&#8217;t press any button on that question.</p>
<p>So it was clear that the phone did something that went wrong a few seconds after being powered on. So the trick was to prevent it from getting on with its booting process, but still allow a USB connection.</p>
<p>Connecting the USB cord while in any of the pre-start menus turned out useless (Use without SIM? Exit from Flight mode?). So I looked a bit at the codes.</p>
<p>What did eventually work, was to use the <a href="http://www.interweb.in/tips-tricks/17176-nokia-mobile-hidden-features-codes.html" target="_blank">*#06# code</a>, which is used to check IMEI. The phone showed me the serial number and didn&#8217;t restart, and when I plugged in the USB cord, I got the usual menu allowing me to choose mode. From there on it was a lot of playing around, trying and retrying until I finally recovered my phone list.</p>
<p>This also made it possible to reprogram the handset with Nokia&#8217;s <a href="http://www.cpkb.org/wiki/Nokia_Phoenix_Service_Software_-_Getting_list_of_files_to_be_flashed_failed_error" target="_blank">Phoenix</a> software, which didn&#8217;t work otherwise. Neither did the Green-*-3 three finger salute for a deep reset nor the infamous *#7370# code for the same purpose. These two never did anything, even when the phone appeared to be sane.</p>
<p>I should point out, that it&#8217;s possible that this trick may have solved a very specific issue on my own phone&#8217;s internal messup, and still, I thought it was best to have it written down for rainy days.</p>
]]></content:encoded>
			<wfw:commentRss>https://billauer.se/blog/2011/04/nokia-6267-restart-reboot-flash/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ionice. Only that made upgrading worth it.</title>
		<link>https://billauer.se/blog/2010/01/ionice-only-that-made-upgrading-worth-it/</link>
		<comments>https://billauer.se/blog/2010/01/ionice-only-that-made-upgrading-worth-it/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 23:16:16 +0000</pubDate>
		<dc:creator>eli</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[miscellaneous]]></category>
		<category><![CDATA[oddities]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">https://billauer.se/blog/?p=447</guid>
		<description><![CDATA[Copying gigabytes of disk can get the system sluggish. On Linux, the solution is so simple. If process 18898 happens to take control of your disk, just go: ionice -c 3 -p 18898 And you have your computer back. &#8220;-c 3&#8243; means class 3, which is idle class. In other words, take the disk when [...]]]></description>
			<content:encoded><![CDATA[<p>Copying gigabytes of disk can get the system sluggish. On Linux, the solution is so simple. If process 18898 happens to take control of your disk, just go:</p>
<pre>ionice -c 3 -p 18898</pre>
<p>And you have your computer back. &#8220;-c 3&#8243; means class 3, which is idle class. In other words, take the disk when nobody else asks for it.</p>
<p>I love it. More <a href="http://friedcpu.wordpress.com/2007/07/17/why-arent-you-using-ionice-yet/" target="_blank">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://billauer.se/blog/2010/01/ionice-only-that-made-upgrading-worth-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
