<?xml version='1.0' encoding='utf-8' ?>

<rss version='2.0' xmlns:lj='http://www.livejournal.org/rss/lj/1.0/' xmlns:atom10='http://www.w3.org/2005/Atom'>
<channel>
  <title>Hans de Goede</title>
  <link>https://hansdegoede.dreamwidth.org/</link>
  <description>Hans de Goede - Dreamwidth Studios</description>
  <lastBuildDate>Tue, 30 Sep 2025 18:55:09 GMT</lastBuildDate>
  <generator>LiveJournal / Dreamwidth Studios</generator>
  <lj:journal>hansdegoede</lj:journal>
  <lj:journaltype>personal</lj:journaltype>
  <image>
    <url>https://v2.dreamwidth.org/16479769/3892031</url>
    <title>Hans de Goede</title>
    <link>https://hansdegoede.dreamwidth.org/</link>
    <width>99</width>
    <height>100</height>
  </image>

<item>
  <guid isPermaLink='true'>https://hansdegoede.dreamwidth.org/31089.html</guid>
  <pubDate>Tue, 30 Sep 2025 18:55:09 GMT</pubDate>
  <title>Fedora 43 will ship with FOSS Meteor, Lunar and Arrow Lake MIPI camera support</title>
  <link>https://hansdegoede.dreamwidth.org/31089.html</link>
  <description>Good news the just released 6.17 kernel has support for the IPU7 CSI2 receiver and the missing USBIO drivers have recently landed in linux-next. I have &lt;a href=&quot;https://gitlab.com/cki-project/kernel-ark/-/merge_requests/4105&quot;&gt;backported&lt;/a&gt; the USBIO drivers + a few other camera fixes to the &lt;a href=&quot;https://bodhi.fedoraproject.org/updates/FEDORA-2025-a2b653cff6&quot;&gt;Fedora 6.17 kernel&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;I&apos;ve also prepared an &lt;a href=&quot;https://bodhi.fedoraproject.org/updates/FEDORA-2025-bdeff04027&quot;&gt;updated libcamera-0.5.2&lt;/a&gt; Fedora package with support for IPU7 (Lunar Lake) CSI2 receivers as well as backporting a set of upstream SwStats and AGC fixes, fixing various crashes as well as the bad flicker MIPI camera users have been hitting with libcamera 0.5.2.&lt;br /&gt;&lt;br /&gt;Together these 2 updates should make Fedora 43&apos;s FOSS MIPI camera support work on most Meteor Lake, Lunar Lake and Arrow Lake laptops!&lt;br /&gt;&lt;br /&gt;If you want to give this a try, install / upgrade to Fedora 43 beta and install all updates. If you&apos;ve installed rpmfusion&apos;s binary IPU6 stack please run: &lt;br /&gt;&lt;br /&gt;&lt;em&gt;sudo dnf remove akmod-intel-ipu6 &apos;kmod-intel-ipu6*&apos;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;to remove it as it may interfere with the FOSS stack and finally reboot. Please first try with qcam:&lt;br /&gt;&lt;br /&gt;&lt;em&gt;sudo dnf install libcamera-qcam&lt;br /&gt;qcam&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;which only tests libcamera and after that give apps which use the camera through pipewire a try like gnome&apos;s &amp;quot;Camera&amp;quot; app (snapshot) or video-conferencing in Firefox.&lt;br /&gt;&lt;br /&gt;Note snapshot on Lunar Lake triggers a bug in the LNL Vulkan code, to avoid this start snapshot from a terminal with:&lt;br /&gt;&lt;br /&gt;&lt;em&gt;GSK_RENDERER=gl snapshot&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;If you have a MIPI camera which still does not work please file a bug &lt;a href=&quot;https://fedoraproject.org/wiki/Changes/X86_MIPI_CameraHwEnablement#How_To_Test&quot;&gt;following these instructions&lt;/a&gt;&amp;nbsp;and drop me an email with the bugzilla link at hansg@kernel.org.&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;https://www.dreamwidth.org/tools/commentcount?user=hansdegoede&amp;ditemid=31089&quot; width=&quot;30&quot; height=&quot;12&quot; alt=&quot;comment count unavailable&quot; style=&quot;vertical-align: middle;&quot;/&gt; comments</description>
  <comments>https://hansdegoede.dreamwidth.org/31089.html</comments>
  <category>ipu6</category>
  <category>fedora</category>
  <category>kernel</category>
  <category>libcamera</category>
  <lj:security>public</lj:security>
  <lj:reply-count>2</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>https://hansdegoede.dreamwidth.org/30910.html</guid>
  <pubDate>Wed, 03 Sep 2025 18:46:20 GMT</pubDate>
  <title>Leaving Red Hat</title>
  <link>https://hansdegoede.dreamwidth.org/30910.html</link>
  <description>After 17 years I feel that it is time to change things up a bit and for a new challenge. I&apos;m leaving Red Hat and my last day at Red Hat will be October 31st.&lt;br /&gt;&lt;br /&gt;I would like to thank Red Hat for the opportunity to work on many  interesting open-source projects during my time at Red Hat and for all  the things I&apos;ve learned while at Red Hat.&lt;br /&gt;&lt;br /&gt;I want to use this opportunity to thank everyone I&apos;ve worked with, both my great Red Hat colleagues, as well as everyone from the community for all the good times during the last 17 years.&lt;br /&gt;&lt;br /&gt;I&apos;ve a pretty good idea of what will come next, but this is not set in stone yet. I definitely will continue to work on open-source and on Linux hw-enablement.&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;https://www.dreamwidth.org/tools/commentcount?user=hansdegoede&amp;ditemid=30910&quot; width=&quot;30&quot; height=&quot;12&quot; alt=&quot;comment count unavailable&quot; style=&quot;vertical-align: middle;&quot;/&gt; comments</description>
  <comments>https://hansdegoede.dreamwidth.org/30910.html</comments>
  <category>kernel</category>
  <category>fedora</category>
  <lj:security>public</lj:security>
  <lj:reply-count>1</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>https://hansdegoede.dreamwidth.org/30249.html</guid>
  <pubDate>Mon, 23 Jun 2025 13:46:22 GMT</pubDate>
  <title>Is Copilot useful for kernel patch review?</title>
  <link>https://hansdegoede.dreamwidth.org/30249.html</link>
  <description>Patch review is an important and useful part of the kernel development process, but it also a time-consuming part. To see if I could save some human reviewer time I&apos;ve been pushing kernel patch-series to a branch on github, creating a pull-request for the branch and then assigning it to Copilot for review. The idea being that In would fix any issues Co-pilot catches before posting the series upstream saving a human reviewer from having to catch the issues.&lt;br /&gt;&lt;br /&gt;I&apos;ve done this for 5 patch-series: &lt;a href=&quot;https://github.com/jwrdegoede/linux-sunxi/pull/7&quot;&gt;one&lt;/a&gt;, &lt;a href=&quot;https://github.com/jwrdegoede/linux-sunxi/pull/8&quot;&gt;two&lt;/a&gt;, &lt;a href=&quot;https://github.com/jwrdegoede/linux-sunxi/pull/9&quot;&gt;three&lt;/a&gt;, &lt;a href=&quot;https://github.com/jwrdegoede/linux-sunxi/pull/10&quot;&gt;four&lt;/a&gt;, &lt;a href=&quot;https://github.com/jwrdegoede/linux-sunxi/pull/11&quot;&gt;five&lt;/a&gt;, totalling 53 patches in total. click the number to see the pull-request and Copilot&apos;s reviews.&lt;br /&gt;&lt;br /&gt;Unfortunately the results are not great on 53 patches Co-pilot had 4 low-confidence comments which were not useful and 3 normal comments. 2 of the no comments were on the &lt;a href=&quot;https://github.com/jwrdegoede/linux-sunxi/pull/10&quot;&gt;power-supply fwnode series&lt;/a&gt; one was about spelling degrees Celcius as degrees Celsius instead which is the single valid remark. The other remark was about re-assigning a variable without freeing it first, but Copilot missed that the re-assignment was to another variable since this happened in a different scope. The third normal comment (&lt;a href=&quot;https://github.com/jwrdegoede/linux-sunxi/pull/11&quot;&gt;here&lt;/a&gt;) was about as useless as they can come.&lt;br /&gt;&lt;br /&gt;To be fair these were all patch-series written by me and then already self-reviewed and deemed ready for upstream posting before I asked Copilot to review them.&lt;br /&gt;&lt;br /&gt;As another experiment I did &lt;a href=&quot;https://github.com/jwrdegoede/linux-sunxi/pull/12&quot;&gt;one final pull-request&lt;/a&gt; with a couple of WIP patches to add USBIO support from Intel. Copilot generated 3 normal comments here all 3 of which are valid and one of them catches a real bug. Still given the WIP state of this case and the fact that my own review has found a whole lot more then just this, including the need for a bunch if refactoring, the results of this Copilot review are also disappointing IMHO.&lt;br /&gt;&lt;br /&gt;Co-pilot also automatically generates summaries of the changes in the pull-requests, at a first look these look useful for e.g. a cover-letter for a patch-set but they are often full with half-truths so at a minimum these need some very careful editing / correcting before they can be used.&lt;br /&gt;&lt;br /&gt;My personal conclusion is that running patch-sets through Copilot before posting them on the list is not worth the effort.&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;https://www.dreamwidth.org/tools/commentcount?user=hansdegoede&amp;ditemid=30249&quot; width=&quot;30&quot; height=&quot;12&quot; alt=&quot;comment count unavailable&quot; style=&quot;vertical-align: middle;&quot;/&gt; comments</description>
  <comments>https://hansdegoede.dreamwidth.org/30249.html</comments>
  <category>fedora</category>
  <category>kernel</category>
  <lj:security>public</lj:security>
  <lj:reply-count>0</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>https://hansdegoede.dreamwidth.org/29996.html</guid>
  <pubDate>Fri, 23 May 2025 16:09:31 GMT</pubDate>
  <title>IPU6 cameras with ov02c10 / ov02e10 now supported in Fedora</title>
  <link>https://hansdegoede.dreamwidth.org/29996.html</link>
  <description>I&apos;m happy to share that 3 major IPU6 camera related kernel changes from linux-next have been &lt;a href=&quot;https://gitlab.com/cki-project/kernel-ark/-/merge_requests/3859&quot;&gt;backported to Fedora&lt;/a&gt; and have been available for about a week now the Fedora &lt;a href=&quot;https://koji.fedoraproject.org/koji/buildinfo?buildID=2711921&quot;&gt;kernel-6.14.6-300.fc42&lt;/a&gt; (or later) package:&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Support for the &lt;a href=&quot;https://git.linuxtv.org/media.git/commit/?id=44f89010dae0eff6aabb9c14fb4b1001542498b4&quot;&gt;OV02C10 camera sensor&lt;/a&gt;, this should e.g. enable the camera to work out of the box on all Dell XPS 9x40 models.&lt;/li&gt;&lt;li&gt;Support for the &lt;a href=&quot;https://git.linuxtv.org/media.git/commit/?id=1c734f8ab070716604d0794094e18de3475c8eeb&quot;&gt;OV02E10 camera sensor&lt;/a&gt;, this should e.g. enable the camera to work out of the box on &lt;span&gt;&lt;span&gt;Dell Precision 5690 laptops. When combined with item 3. below and the &lt;a href=&quot;https://koji.rpmfusion.org/koji/buildinfo?buildID=30990&quot;&gt;USBIO drivers from rpmfusion&lt;/a&gt; this should also e.g. enable the camera on other laptop models like e.g. the &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;Dell Latitude 7450.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Support for the &lt;a href=&quot;https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/commit/?h=for-next&amp;amp;id=c5d0393272048748ace2dd4ff8326fc0bf70b262&quot;&gt;special handshake GPIO&lt;/a&gt; used to turn on the sensor and allow sensor i2c-access on various new laptop models using the Lattice MIPI aggregator FPGA / USBIO chip.&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;If you want to give this a test using the libcamera-softwareISP FOSS stack, run the following commands:&lt;br /&gt;&lt;br /&gt;sudo rm -f /etc/modprobe.d/ipu6-driver-select.conf&lt;br /&gt;sudo dnf update &apos;kernel*&apos;&lt;br /&gt;sudo dnf install libcamera-qcam&lt;br /&gt;reboot&lt;br /&gt;qcam&lt;br /&gt;&lt;br /&gt;Note the colors being washed out and/or the image possibly being a bit over or under exposed is expected behavior ATM, this is due to the software ISP needing more work to improve the image quality. If your camera still does not work after these changes and you&apos;ve not filed a bug for this camera already please file a bug following &lt;a href=&quot;https://fedoraproject.org/wiki/Changes/X86_MIPI_CameraHwEnablement#How_To_Test&quot;&gt;these instructions&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;See my &lt;a href=&quot;https://hansdegoede.dreamwidth.org/29920.html&quot;&gt;previous blogpost&lt;/a&gt; on how to also test Intel&apos;s proprietary stack from rpmfusion if you also have that installed.&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;https://www.dreamwidth.org/tools/commentcount?user=hansdegoede&amp;ditemid=29996&quot; width=&quot;30&quot; height=&quot;12&quot; alt=&quot;comment count unavailable&quot; style=&quot;vertical-align: middle;&quot;/&gt; comments</description>
  <comments>https://hansdegoede.dreamwidth.org/29996.html</comments>
  <category>kernel</category>
  <category>fedora</category>
  <category>ipu6</category>
  <lj:security>public</lj:security>
  <lj:reply-count>6</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>https://hansdegoede.dreamwidth.org/29920.html</guid>
  <pubDate>Fri, 23 May 2025 15:42:26 GMT</pubDate>
  <title>IPU6 FOSS and proprietary stack co-existence</title>
  <link>https://hansdegoede.dreamwidth.org/29920.html</link>
  <description>Since the set of rpmfusion &lt;a href=&quot;https://koji.rpmfusion.org/koji/packageinfo?packageID=661&quot;&gt;intel-ipu6-kmod&lt;/a&gt; +&amp;nbsp;&lt;a href=&quot;https://koji.rpmfusion.org/koji/packageinfo?packageID=653&quot;&gt;ipu6-camera-*&lt;/a&gt; package updates from last February the FOSS libcamera-softwareISP and Intel&apos;s proprietary stack using the Intel hardware ISP can now co-exist on Fedora systems, sharing the mainline IPU6-CSI2 receiver driver.&lt;br /&gt;&lt;br /&gt;Because of this it is no longer necessary to blacklist the kernel-modules from the other stack. Unfortunately when the rpmfusion packages first generated &amp;quot;/etc/modprobe.d/ipu6-driver-select.conf&amp;quot; for blacklisting this file was not marked as &amp;quot;%ghost&amp;quot; in the specfile and now with the February &lt;a href=&quot;https://koji.rpmfusion.org/koji/packageinfo?packageID=653&quot;&gt;ipu6-camera-hal&lt;/a&gt; the file has been removed from the package. This means that if you&apos;ve jumped from an old ipu6-camera-hal where the file was not marked as &amp;quot;%ghost directly to the latest you may still have the modprobe.d conf file around causing issues. To fix this run:&lt;br /&gt;&lt;br /&gt;sudo rm -f /etc/modprobe.d/ipu6-driver-select.conf&lt;br /&gt;&lt;br /&gt;and then reboot. I&apos;ll also add this as post-install script to the ipu6-camera-hal packages, to fix systems being broken because of this.&lt;br /&gt;&lt;br /&gt;If you want the rpmfusion packages because your system needs the USBIO drivers, but you do not want the proprietary stack, you can run the following command to disable the proprietary stack:&lt;br /&gt;&lt;br /&gt;sudo ipu6-driver-select foss&lt;br /&gt;&lt;br /&gt;Or if you have disabled the prorietary stack in the past and want to give it a try, run:&lt;br /&gt;&lt;br /&gt;sudo ipu6-driver-select proprietary&lt;br /&gt;&lt;br /&gt;To test switching between the 2 stacks  in Firefox go to &lt;a href=&quot;https://mozilla.github.io/webrtc-landing/gum_test.html&quot;&gt;Mozilla&apos;s webrtc test page&lt;/a&gt;  and click on the &amp;quot;Camera&amp;quot; button, you should now get a camera permisson  dialog with 2 cameras: &amp;quot;Built in Front Camera&amp;quot; and &amp;quot;Intel MIPI Camera  (V4L2)&amp;quot; the &amp;quot;Built in Front Camera&amp;quot; is the FOSS stack and the &amp;quot;Intel  MIPI Camera (V4L2)&amp;quot; is the proprietary stack. Note the FOSS stack will  show a strongly zoomed in (cropped) image, this is caused by the GUM  test-page, in e.g. google-meet this will not be the case.&lt;br /&gt;&lt;br /&gt;Unfortunately switching between the 2 cameras in jitsi does not work well. The jitsi camera selector tries to show a preview of both cameras at the same time and while one stack is streaming the other stack cannot access the camera. You should be able to switch by: 1. Selecting the camera you want 2. Closing the jitsi tab 3. wait a few seconds for the camera to stop streaming 4. open jitsi in a new tab.&lt;br /&gt;&lt;br /&gt;Note I already mentioned most of this in my previous &lt;a href=&quot;https://hansdegoede.dreamwidth.org/29477.html&quot;&gt;blog post&lt;/a&gt; but it was a bit buried there.&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;https://www.dreamwidth.org/tools/commentcount?user=hansdegoede&amp;ditemid=29920&quot; width=&quot;30&quot; height=&quot;12&quot; alt=&quot;comment count unavailable&quot; style=&quot;vertical-align: middle;&quot;/&gt; comments</description>
  <comments>https://hansdegoede.dreamwidth.org/29920.html</comments>
  <category>kernel</category>
  <category>fedora</category>
  <category>ipu6</category>
  <lj:security>public</lj:security>
  <lj:reply-count>0</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>https://hansdegoede.dreamwidth.org/29477.html</guid>
  <pubDate>Mon, 24 Feb 2025 14:42:04 GMT</pubDate>
  <title>ThinkPad X1 Carbon Gen 12 camera support and other IPU6 camera work</title>
  <link>https://hansdegoede.dreamwidth.org/29477.html</link>
  <description>I have been working on getting the camera on the ThinkPad X1 Carbon Gen 12 to work under Fedora.&lt;br /&gt;&lt;br /&gt;This requires 3 things:&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Some ov08x40 sensor patches, these are available as downstream cherry-picks in Fedora kernels &amp;gt;= 6.12.13&lt;/li&gt;&lt;li&gt;A small pipewire fix to avoid WirePlumber listing a bunch of bogus extra &amp;quot;ipu6&amp;quot; Video Sources, these fixes are available in Fedora&apos;s pipewire packages &amp;gt;= 1.2.7-4&lt;/li&gt;&lt;li&gt;I2C and GPIO drivers for the new Lattice USB IO-expander, these drivers are not available in the upstream / mainline kernel yet&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;I have also rebased the out of tree IPU6 ISP and proprietary userspace stack in rpmfusion and I have integrated the USBIO drivers into the intel-ipu6-kmod package. So for now getting the cameras to work on the X1 Carbon Gen 12 requires installing the out of tree drivers through rpmfusion. Follow &lt;a href=&quot;https://rpmfusion.org/Configuration&quot;&gt;these instructions&lt;/a&gt; to enable rpmfusion, you need both the free and nonfree repos.&lt;br /&gt;&lt;br /&gt;Then make sure you have a new enough kernel installed and install the rpmfusion akmod for the USBIO drivers:&lt;br /&gt;&lt;br /&gt;sudo dnf update &apos;kernel*&apos;&lt;br /&gt;sudo dnf install akmod-intel-ipu6&lt;br /&gt;&lt;br /&gt;The latest version of the out of tree IPU6 ISP driver can co-exist with the mainline / upstream IPU6 CSI receiver kernel driver. So both the libcamera software ISP FOSS stack and Intel&apos;s proprietary stack can co-exist now. If you do not want to use the proprietary stack you can disable it by running &apos;sudo ipu6-driver-select foss&apos;.&lt;br /&gt;&lt;br /&gt;After installing the kmod package reboot and then in Firefox go to &lt;a href=&quot;https://mozilla.github.io/webrtc-landing/gum_test.html&quot;&gt;Mozilla&apos;s webrtc test page&lt;/a&gt; and click on the &amp;quot;Camera&amp;quot; button, you should now get a camera permisson dialog with 2 cameras: &amp;quot;Built in Front Camera&amp;quot; and &amp;quot;Intel MIPI Camera (V4L2)&amp;quot; the &amp;quot;Built in Front Camera&amp;quot; is the FOSS stack and the &amp;quot;Intel MIPI Camera (V4L2)&amp;quot; is the proprietary stack. Note the FOSS stack will show a strongly zoomed in (cropped) image, this is caused by the GUM test-page, in e.g. google-meet this will not be the case.&lt;br /&gt;&lt;br /&gt;I have also been making progress with some of the other open IPU6 issues:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Camera&apos;s failing on Dell XPS laptops due to iVSC errors (&lt;a href=&quot;https://bugzilla.redhat.com/show_bug.cgi?id=2316918&quot;&gt;rhbz#2316918&lt;/a&gt;, &lt;a href=&quot;https://bugzilla.redhat.com/show_bug.cgi?id=2324683&quot;&gt;rhbz#2324683&lt;/a&gt;) after a long debugging session this is finally fixed, the fix for this will be available in Fedora kernels &amp;gt;= 6.13.4 which should show up in updates-testing today&lt;/li&gt;&lt;li&gt;Camera&apos;s no working on &lt;a href=&quot;https://bugzilla.redhat.com/show_bug.cgi?id=2341732&quot;&gt;Microsoft Surface book with ov7251 sensor&lt;/a&gt;, the fix for this has &lt;a href=&quot;https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/platform/x86/intel?id=569617dbbd06286fb73f3f1c2ac91e51d863c7de&quot;&gt;landed upstream&lt;/a&gt;&lt;br /&gt;&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;https://www.dreamwidth.org/tools/commentcount?user=hansdegoede&amp;ditemid=29477&quot; width=&quot;30&quot; height=&quot;12&quot; alt=&quot;comment count unavailable&quot; style=&quot;vertical-align: middle;&quot;/&gt; comments</description>
  <comments>https://hansdegoede.dreamwidth.org/29477.html</comments>
  <category>ipu6</category>
  <category>fedora</category>
  <category>kernel</category>
  <lj:security>public</lj:security>
  <lj:reply-count>5</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>https://hansdegoede.dreamwidth.org/29233.html</guid>
  <pubDate>Tue, 14 Jan 2025 14:21:40 GMT</pubDate>
  <title>IPU6 camera support status update</title>
  <link>https://hansdegoede.dreamwidth.org/29233.html</link>
  <description>The &lt;a href=&quot;https://fedoraproject.org/wiki/Changes/IPU6_Camera_support&quot; title=&quot;Changes/IPU6 Camera support&quot;&gt; initial IPU6 camera support&lt;/a&gt; landed in Fedora 41 only works on a limited set of laptops. The reason for this is that with MIPI cameras every different sensor  and glue-chip like IO-expanders needs to be supported separately. &lt;p&gt;I have been working on making the camera work on more laptop models. After receiving and sending many emails and blog post comments about this I have started filing Fedora bugzilla issues on a per sensor and/or laptop-model basis to be able to properly keep track of all the work.&lt;br /&gt;&lt;br /&gt; Currently the following issues are being either actively being worked  on, or are being tracked to be fixed in the future.&lt;br /&gt;&lt;br /&gt;Issues which have fixes pending (review) upstream:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a class=&quot;external text&quot; href=&quot;https://bugzilla.redhat.com/show_bug.cgi?id=2333385&quot;&gt;IPU6 camera on TERRA PAD 1262 V2 not working&lt;/a&gt;, fix has been &lt;a class=&quot;external text&quot; href=&quot;https://git.linuxtv.org/sailus/media_tree.git/commit/?h=devel&amp;amp;id=fa3772f390c6aed371639c35383ceb4025597af1&quot;&gt;accepted upstream&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;&lt;a class=&quot;external text&quot; href=&quot;https://bugzilla.redhat.com/show_bug.cgi?id=2333347&quot;&gt;IPU6 camera on Dell XPS 9x40 models with ov02c10 sensor not working&lt;/a&gt;, sensor driver has been &lt;a class=&quot;external text&quot; href=&quot;https://lore.kernel.org/linux-media/20241219175128.40871-1-heimir.sverrisson@gmail.com/&quot;&gt;submitted upstream&lt;/a&gt;.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Open issues with various states of progress:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a class=&quot;external text&quot; href=&quot;https://bugzilla.redhat.com/show_bug.cgi?id=2332997&quot;&gt;IPU6 camera on Dell Latitude 7450 laptop not working&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a class=&quot;external text&quot; href=&quot;https://bugzilla.redhat.com/show_bug.cgi?id=2333331&quot;&gt;IPU6 camera on HP Spectre x360 14-eu0xxx / Spectre 16 MeteorLake with ov08x40 not working &lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a class=&quot;external text&quot; href=&quot;https://bugzilla.redhat.com/show_bug.cgi?id=2333647&quot;&gt;IPU6 camera on HP Spectre x360 2-in-1 16-f1xxx/891D with hi556 sensor not working&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a class=&quot;external text&quot; href=&quot;https://bugzilla.redhat.com/show_bug.cgi?id=2333387&quot;&gt;IPU6 camera on Lenovo ThinkPad X1 Carbon Gen 12 not working&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a class=&quot;external text&quot; href=&quot;https://bugzilla.redhat.com/show_bug.cgi?id=2333299&quot;&gt;Lattice MIPI Aggregator support for IPU6 cameras&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a class=&quot;external text&quot; href=&quot;https://bugzilla.redhat.com/show_bug.cgi?id=2333383&quot;&gt;Lunar Lake MIPI camera / IPU7 CSI receiver support&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a class=&quot;external text&quot; href=&quot;https://bugzilla.redhat.com/show_bug.cgi?id=2337593&quot;&gt;ov01a10 camera sensor driver lacks 1296x816 mode support&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a class=&quot;external text&quot; href=&quot;https://bugzilla.redhat.com/show_bug.cgi?id=2337595&quot;&gt;No driver for ov01a1s camera sensor&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a class=&quot;external text&quot; href=&quot;https://bugzilla.redhat.com/show_bug.cgi?id=2316918&quot;&gt;iVSC fails to probe with ETIMEDOUT&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a class=&quot;external text&quot; href=&quot;https://bugzilla.redhat.com/show_bug.cgi?id=2324683&quot;&gt;iVSC fails to probe with EINVAL on XPS 9315&lt;/a&gt; &lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;See all the individual bugs for more details. I plan to post semi-regular status updates on this on my blog.&lt;br /&gt;&lt;br /&gt;This above list of issues can also be found on my &lt;a href=&quot;https://fedoraproject.org/wiki/Changes/X86_MIPI_CameraHwEnablement&quot;&gt;Fedora 42 change proposal&lt;/a&gt; tracking this and I intent to keep an updated complete list of all x86 MIPI camera issues (including closed ones) there.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;https://www.dreamwidth.org/tools/commentcount?user=hansdegoede&amp;ditemid=29233&quot; width=&quot;30&quot; height=&quot;12&quot; alt=&quot;comment count unavailable&quot; style=&quot;vertical-align: middle;&quot;/&gt; comments</description>
  <comments>https://hansdegoede.dreamwidth.org/29233.html</comments>
  <category>kernel</category>
  <category>ipu6</category>
  <category>fedora</category>
  <lj:security>public</lj:security>
  <lj:reply-count>3</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>https://hansdegoede.dreamwidth.org/29039.html</guid>
  <pubDate>Thu, 12 Dec 2024 13:52:47 GMT</pubDate>
  <title>IPU6 camera support is broken in kernel 6.11.11 / 6.12.2-6.12.4</title>
  <link>https://hansdegoede.dreamwidth.org/29039.html</link>
  <description>Unfortunately an incomplete &lt;a href=&quot;https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.11.y&amp;amp;id=a8a333a5a3cc9a871ee919c848f191616f3d030b&quot;&gt;backport&lt;/a&gt; of IPU6 DMA handling changes has landed in kernel 6.11.11.&lt;br /&gt;&lt;br /&gt;This not only causes IPU6 cameras to not work, this causes the kernel to (often?) crash on boot on systems where the IPU6 is in use and thus enabled by the BIOS.&lt;br /&gt;&lt;br /&gt;Kernels 6.12.2 - 6.12.4 are also affected by this. A &lt;a href=&quot;https://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git/tree/queue-6.12/media-ipu6-use-the-ipu6-dma-mapping-apis-to-do-mapping.patch&quot;&gt;fix for this is pending&lt;/a&gt; for the upcoming 6.12.5 release.&lt;br /&gt;&lt;br /&gt;6.11.11 is the last stable release in the 6.11.y series, so there will be no new stable 6.11.y release with a fix.&lt;br /&gt;&lt;br /&gt;As a workaround users affected by this can stay with 6.11.10 or 6.12.1 until 6.12.5 is available in your distributions updates(-testing) repository.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;https://www.dreamwidth.org/tools/commentcount?user=hansdegoede&amp;ditemid=29039&quot; width=&quot;30&quot; height=&quot;12&quot; alt=&quot;comment count unavailable&quot; style=&quot;vertical-align: middle;&quot;/&gt; comments</description>
  <comments>https://hansdegoede.dreamwidth.org/29039.html</comments>
  <category>fedora</category>
  <category>ipu6</category>
  <category>kernel</category>
  <lj:security>public</lj:security>
  <lj:reply-count>0</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>https://hansdegoede.dreamwidth.org/28841.html</guid>
  <pubDate>Wed, 02 Oct 2024 18:06:02 GMT</pubDate>
  <title>IPU6 camera support in Fedora 41</title>
  <link>https://hansdegoede.dreamwidth.org/28841.html</link>
  <description>I&apos;m happy to announce that the last tweaks have landed and that the fully FOSS libcamera software ISP based IPU6 camera support in Fedora 41 now has no known bugs left. See the &lt;a href=&quot;https://fedoraproject.org/wiki/Changes/IPU6_Camera_support&quot;&gt;Changes page&lt;/a&gt; for &lt;a href=&quot;https://fedoraproject.org/wiki/Changes/IPU6_Camera_support#How_To_Test&quot;&gt;testing instructions&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;Supported hardware&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Unlike USB UVC cameras where all cameras work with a single kernel driver, MIPI cameras like the Intel IPU6 cameras require multiple drivers. The IPU6 input-system CSI receiver driver is common to all laptops with an IPU6 camera, but different laptops use different camera sensors and each sensor needs its own driver and then there are glue ICs like the LJCA USB IO-expander and the iVSC (Intel Visual Sensing Controller) and there also is the &lt;a href=&quot;https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/media/pci/intel/ipu-bridge.c&quot;&gt;ipu-bridge&lt;/a&gt;  code which translates Windows oriented ACPI tables with sensor info into the fwnodes which the Linux drivers expect.&lt;br /&gt;&lt;br /&gt;This means that even though IPU6 support has landed in Fedora 41 not all laptops with an IPU6 camera will work. Currently the IPU6 integrated in the following CPU models works if the sensor + glue hw/sw is also supported:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Tiger Lake&lt;/li&gt;&lt;li&gt;Alder Lake&lt;/li&gt;&lt;li&gt;Raptor Lake&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Jasper Lake and Meteor Lake also have an IPU6 but there is some more integration work necessary to get things to work there. Getting Meteor Lake IPU6 cameras to work is high on my TODO list.&lt;br /&gt;&lt;br /&gt;The mainline kernel IPU6 CSI receiver + libcamera software ISP has been successfully tested on the following models:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Various Lenovo ThinkPad models with ov2740 (INT3474) sensor (1)&lt;/li&gt;&lt;li&gt;Various Dell models with ov01a10 (OVTI01A0) sensor&lt;/li&gt;&lt;li&gt;Dell XPS 13 PLus with ov13b10 (OVTIDB10/OVTI13B1)&lt;/li&gt;&lt;li&gt;Some HP laptops with hi556 sensor (INT3537)&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;To see which sensor your laptop has run: &lt;em&gt;&amp;quot;ls /sys/bus/i2c/devices&amp;quot;&lt;/em&gt; this will show e.g. &amp;quot;i2c-INT3474:00&amp;quot; if you have an ov2740, with INT3474 being the ACPI Hardware ID (HID) for the sensor. See &lt;a href=&quot;https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/media/pci/intel/ipu-bridge.c#n49&quot;&gt;here&lt;/a&gt; for a list of currently known HID to sensor mappings. Note not all of these have upstream drivers yet. In that cases chances are that there might be a sensor driver for your sensor &lt;a href=&quot;https://github.com/intel/ipu6-drivers/tree/master/drivers/media/i2c&quot;&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;We could really use help with people submitting drivers from &lt;a href=&quot;https://github.com/intel/ipu6-drivers/tree/master/drivers/media/i2c&quot;&gt;there&lt;/a&gt; upstream. So if you have a laptop with a sensor which is not in the mainline but is available there, you know a bit of C-programming and you are willing to help, then please drop me an &lt;a href=&quot;mailto:hdegoede@redhat.com&quot;&gt;email&lt;/a&gt; so that we can work together to get the driver upstream.&lt;br /&gt;&lt;br /&gt;1) on some ThinkPads the ov2740 sensor fails to start streaming most of the time. I plan to look into this next week and hopefully I can come up with a fix.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;MIPI camera Integration work done for Fedora 41&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;After landing the kernel IPU6 CSI receiver and libcamera software ISP support upstream early in the Fedora 41 cycle, there still was a lot of work to do with regards to integrating this into the rest of the stack so that the cameras can actually be used outside of the qcam test app.&lt;br /&gt;&lt;br /&gt;The whole stack looks like this &lt;em&gt;&amp;quot;kernel &amp;rarr; libcamera &amp;rarr; pipewire | pipewire-camera-consuming-app&amp;quot;&lt;/em&gt;. Where the 2 currently supported pipewire-camera consuming apps are &lt;a href=&quot;https://jgrulich.cz/2024/08/19/making-pipewire-default-option-for-firefox-camera-handling/&quot;&gt;Firefox&lt;/a&gt; and GNOME Snapshot.&lt;br /&gt;&lt;br /&gt;Once this was all up and running testing found quite a few bugs which have all been fixed now:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Firefox showing 13 different cameras in its camera selection pulldown for a single IPU6 camera (&lt;a href=&quot;https://gitlab.freedesktop.org/pipewire/pipewire/-/merge_requests/2095&quot;&gt;fix&lt;/a&gt;).&lt;/li&gt;&lt;li&gt;Installing pipewire-plugin-libcamera leads to UVC cameras being powered on all the time causing significant battery drain (&lt;a href=&quot;https://gitlab.freedesktop.org/pipewire/pipewire/-/merge_requests/2086&quot;&gt;bug&lt;/a&gt;, &lt;a href=&quot;https://bugs.libcamera.org/show_bug.cgi?id=168&quot;&gt;bug&lt;/a&gt;, &lt;a href=&quot;https://lists.libcamera.org/pipermail/libcamera-devel/2024-August/044384.html&quot;&gt;discussion&lt;/a&gt;, &lt;a href=&quot;https://lists.libcamera.org/pipermail/libcamera-devel/2024-August/044279.html&quot;&gt;fix&lt;/a&gt;).&lt;/li&gt;&lt;li&gt;Pipewire does not always recognizes cameras on login (&lt;a href=&quot;https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/3539&quot;&gt;bug&lt;/a&gt;, &lt;a href=&quot;https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/3960&quot;&gt;bug&lt;/a&gt;, &lt;a href=&quot;https://bugs.launchpad.net/ubuntu/+source/pipewire/+bug/2061687&quot;&gt;bug&lt;/a&gt;, &lt;a href=&quot;https://gitlab.freedesktop.org/pipewire/pipewire/-/merge_requests/2118&quot;&gt;fix&lt;/a&gt;).&lt;/li&gt;&lt;li&gt;Pipewire fails to show cameras with relative controls (&lt;a href=&quot;https://gitlab.freedesktop.org/pipewire/pipewire/-/merge_requests/2121&quot;&gt;fix&lt;/a&gt;).&lt;/li&gt;&lt;li&gt;spa_libcamera_buffer_recycle sometimes fails, causing stream to freeze on first frame (&lt;a href=&quot;https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/4227&quot;&gt;bug&lt;/a&gt;, &lt;a href=&quot;https://gitlab.freedesktop.org/pipewire/pipewire/-/merge_requests/2108&quot;&gt;fix&lt;/a&gt;)&lt;/li&gt;&lt;li&gt;Firefox chooses bad default resolution of 640x480. I worked with Jan Grulich to get this fixed and this is fixed as of firefox-130.0.1-3.fc41. Thank you Jan!&lt;/li&gt;&lt;li&gt;Snapshot prefers 4:3 mode, e.g. 1280x1080 on 16:9 camera sensors capable of 1920x1080 (&lt;a href=&quot;https://gitlab.gnome.org/GNOME/snapshot/-/merge_requests/317&quot;&gt;pending fix&lt;/a&gt;)&lt;/li&gt;&lt;li&gt;Added intel-vsc-firmware, pipewire-plugin-libcamera, libcamera-ipa to the Fedora 41 Workstation default package-set (&lt;a href=&quot;https://pagure.io/fedora-comps/pull-request/1023&quot;&gt;pull&lt;/a&gt;, &lt;a href=&quot;https://src.fedoraproject.org/rpms/pipewire/pull-request/27&quot;&gt;pull&lt;/a&gt;, &lt;a href=&quot;https://src.fedoraproject.org/rpms/libcamera/pull-request/13&quot;&gt;pull&lt;/a&gt;)&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;https://www.dreamwidth.org/tools/commentcount?user=hansdegoede&amp;ditemid=28841&quot; width=&quot;30&quot; height=&quot;12&quot; alt=&quot;comment count unavailable&quot; style=&quot;vertical-align: middle;&quot;/&gt; comments</description>
  <comments>https://hansdegoede.dreamwidth.org/28841.html</comments>
  <category>ipu6</category>
  <category>pipewire</category>
  <category>fedora</category>
  <category>kernel</category>
  <category>libcamera</category>
  <lj:security>public</lj:security>
  <lj:reply-count>20</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>https://hansdegoede.dreamwidth.org/28552.html</guid>
  <pubDate>Sat, 14 Sep 2024 13:38:51 GMT</pubDate>
  <title>Fedora plymouth boot splash not showing on systems with AMD GPUs</title>
  <link>https://hansdegoede.dreamwidth.org/28552.html</link>
  <description>Recently there have been a number of reports (&lt;a href=&quot;https://bugzilla.redhat.com/show_bug.cgi?id=2183743&quot;&gt;bug 2183743&lt;/a&gt;, &lt;a href=&quot;https://bugzilla.redhat.com/show_bug.cgi?id=2276698&quot;&gt;bug 2276698&lt;/a&gt;, &lt;a href=&quot;https://bugzilla.redhat.com/show_bug.cgi?id=2283839&quot;&gt;bug 2283839&lt;/a&gt;, &lt;a href=&quot;https://bugzilla.redhat.com/show_bug.cgi?id=2312355&quot;&gt;bug 2312355&lt;/a&gt;) about the plymouth boot splash not showing properly on PCs using AMD GPUs.&lt;br /&gt;&lt;br /&gt;The problem without plymouth and AMD GPUs is that the amdgpu driver is a really really big driver, which easily takes up to 10 seconds to load on older PCs. The delay caused by this may cause plymouth to timeout while waiting for the GPU to be initialized, causing it to fallback to the 3 dot text-mode boot splash.&lt;br /&gt;&lt;br /&gt;There are 2 workaround for this depending on the PCs configuration:&lt;br /&gt;&lt;br /&gt;1. With older AMD GPUs the radeon driver is actually used to drive the GPU but even though it is unused the amdgpu driver still loads slowing things down.&lt;br /&gt;&lt;br /&gt;To check if this is the case for your PC start a terminal in a graphical login session and run: &amp;quot;lsmod | grep -E &apos;^radeon|^amdgpu&apos;&amp;quot; this will output something like this:&lt;br /&gt;&lt;br /&gt;amdgpu              17829888  0&lt;br /&gt;radeon               2371584  37&lt;br /&gt;&lt;br /&gt;The second number after each is the usage count. As you can see in this example the amdgpu driver is not used. In this case you can disable the loading of the amdgpu driver by adding &amp;quot;modprobe.blacklist=amdgpu&amp;quot; to your kernel commandline:&lt;br /&gt;&lt;br /&gt;sudo grubby --update-kernel=ALL --args=&amp;quot;modprobe.blacklist=amdgpu&amp;quot;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2. If the amdgpu driver is actually used on your PC then plymouth not showing can be worked around by telling plymouth to use the simpledrm drm/kms device created from the EFI framebuffer early on boot, rather then waiting for the real GPU driver to load. Note this depends on your PC booting in EFI mode. To do this run:&lt;br /&gt;&lt;br /&gt;sudo grubby --update-kernel=ALL --args=&amp;quot;plymouth.use-simpledrm&amp;quot;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;After using 1 of these workarounds plymouth should show normally again on boot (and booting should be a bit faster).&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;https://www.dreamwidth.org/tools/commentcount?user=hansdegoede&amp;ditemid=28552&quot; width=&quot;30&quot; height=&quot;12&quot; alt=&quot;comment count unavailable&quot; style=&quot;vertical-align: middle;&quot;/&gt; comments</description>
  <comments>https://hansdegoede.dreamwidth.org/28552.html</comments>
  <category>fedora</category>
  <category>plymouth</category>
  <category>kernel</category>
  <lj:security>public</lj:security>
  <lj:reply-count>2</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>https://hansdegoede.dreamwidth.org/27024.html</guid>
  <pubDate>Sat, 05 Nov 2022 15:10:12 GMT</pubDate>
  <title>Second request for Linux backlight testing for changes planned for 6.2</title>
  <link>https://hansdegoede.dreamwidth.org/27024.html</link>
  <description>As mentioned in &lt;a href=&quot;https://hansdegoede.dreamwidth.org/26862.html&quot;&gt;my previous blog post&lt;/a&gt;, I have written &lt;a href=&quot;https://lore.kernel.org/linux-acpi/20221105145258.12700-1-hdegoede@redhat.com/&quot;&gt;a new patch series for 6.2&lt;/a&gt; to try to avoid having multiple entries in /sys/class/backlight for a single panel again.&lt;br /&gt;&lt;br /&gt;This new series might cause regressions on a different set of even older laptop models then the one affected by the 6.1 backlight work. So I&apos;m again looking for people willing to run a few quick tests.&lt;br /&gt;&lt;br /&gt;To see if your laptop is possibly affected by the 6.2 change please run:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;ls /sys/class/backlight&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;if the output of this command contains both:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;A GPU native backlight device, with intel/nv/nvidia/amd/radeon/psb/oaktrail in the name; and&lt;/li&gt;&lt;li&gt;A vendor backlight device, with either a model-series: eeepc, ideapad, thinkpad, etc; or a vendor-name: acer, asus, dell, toshiba, sony, etc. in the name&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;then 6.2 will cause a behavior change on your device, it will hide the vendor backlight device in preference of the native backlight device.&lt;br /&gt;&lt;br /&gt;If your laptop shows only a native or only a vendor backlight device (possibly in combination with another type of backlight device such as acpi_video#), then your laptop will not be affected by the planned changes for 6.2.&lt;br /&gt;&lt;br /&gt;Note that I expect only very old models to be affected, e.g. the Sony Vaio PCG-FRV3&lt;br /&gt;from 2003 is known to be affected.&lt;br /&gt;&lt;br /&gt;If your laptop has both native + vendor backlight devices, then please do 2 things:&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Please run the following commands:&lt;ol&gt;&lt;li&gt;ls /sys/class/backlight &amp;gt; ls-backlight.txt&lt;/li&gt;&lt;li&gt;sudo dmesg &amp;gt; dmesg.txt&lt;/li&gt;&lt;li&gt;sudo dmidecode &amp;gt; dmidecode.txt&lt;/li&gt;&lt;li&gt;sudo acpidump -o acpidump.txt&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li&gt;Please test if the native backlight interface works, the example below assumes the native backlight is called &amp;quot;intel_backlight&amp;quot;:&lt;ol&gt;&lt;li&gt;cd /sys/class/backlight/intel_backlight&lt;/li&gt;&lt;li&gt;cat max_brightness&lt;/li&gt;&lt;li&gt;&amp;lt;the &amp;quot;cat max_brightness&amp;quot; will show the maximum brightness value supported&amp;gt;&lt;/li&gt;&lt;li&gt;echo $max_brightness_value &amp;gt; brightness&lt;/li&gt;&lt;li&gt;echo $half-of-max_brightness_value &amp;gt; brightness&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div style=&quot;margin-left: 40px;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;margin-left: 80px;&quot;&gt;Where if for example cat max_brightness returns 255 then $max_brightness_value&lt;br /&gt;is 255 and $half-of-max_brightness_value is 127. And then check if the brightness of the backlight actually changes when you do this ?&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;After generating the 4 .txt files and running the native backlight tests, please send me an email about this at hdegoede@redhat.com with the results of the native backlight tests (panel brightness changes when echo-ing values to brightness or not?) and with the 4 generated .txt files attached.&lt;br /&gt;&lt;br /&gt;If the native backlight interface works then things should keep working fine with 6.2 and typically you will get more fine-grained brightness control as an added bonus. Please send me an email with the test results even if the native backlight interface works.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;https://www.dreamwidth.org/tools/commentcount?user=hansdegoede&amp;ditemid=27024&quot; width=&quot;30&quot; height=&quot;12&quot; alt=&quot;comment count unavailable&quot; style=&quot;vertical-align: middle;&quot;/&gt; comments</description>
  <comments>https://hansdegoede.dreamwidth.org/27024.html</comments>
  <category>kernel</category>
  <category>fedora</category>
  <category>backlight</category>
  <lj:security>public</lj:security>
  <lj:reply-count>0</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>https://hansdegoede.dreamwidth.org/26862.html</guid>
  <pubDate>Sat, 05 Nov 2022 15:01:42 GMT</pubDate>
  <title>Results of requested backlight testing for 6.1</title>
  <link>https://hansdegoede.dreamwidth.org/26862.html</link>
  <description>I have received quite a few test reports in response to my previous blog post. Many thanks to everyone who has run the tests and send me their results!&lt;br /&gt;&lt;br /&gt;These tests show that as a result of the current 6.1 changes quite a few laptop models will end up with an empty &amp;quot;/sys/class/backlight&amp;quot;, breaking users ability to control their laptop panel&apos;s brightness.&lt;br /&gt;&lt;br /&gt;I have submitted &lt;a href=&quot;https://lore.kernel.org/linux-acpi/20221104212108.73537-1-hdegoede@redhat.com/&quot;&gt;a patch-set for 6.1&lt;/a&gt; upstream to fix this.&lt;br /&gt;&lt;br /&gt;More detailed summary/analysis of the received test reports:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Known Windows laptop models affected by this:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Acer Aspire 1640&lt;/li&gt;&lt;li&gt;HP Compaq nc6120&lt;/li&gt;&lt;li&gt;IBM ThinkPad X40&lt;/li&gt;&lt;li&gt;System76 Starling Star1&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;Known MacBook models affected by this:&lt;ul&gt;&lt;li&gt;Apple MacBook 2.1&lt;/li&gt;&lt;li&gt;Apple MacBook 4.1&lt;/li&gt;&lt;li&gt;Apple MacBook Pro 7.1&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;30 unaffected models&lt;/li&gt;&lt;li&gt;The Dell Inspiron N4010 has acpi_video support and acpi_osi_is_win8() returns false, so acpi_video_get_backlight_type() returns acpi_video, but acpi_video fails to register a backlight device due to a _BCM eval error. This model already has a DMI quirk for this, so it is unaffected.&lt;/li&gt;&lt;li&gt;The following laptop models use vendor backlight control method, while also having a native backlight entry under /sys/class/backlight:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Asus EeePC 901 (native backlight confirmed to work better then vendor)&lt;/li&gt;&lt;li&gt;Dell Latitude D610 (native backlight confirmed to also work)&lt;/li&gt;&lt;li&gt;Sony Vaio PCG-FRV3 (native backlight control does not work, BIOS from 2003!)&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;The fixes for 6.1 restore the behavior where userspace can see multiple entries under &amp;quot;/sys/class/backlight&amp;quot; for a single panel and the kernel leaves figuring out which one actually works up to userspace. This is undesirable and having more then 1 backlight device for a single panel also blocks &lt;a href=&quot;https://lore.kernel.org/dri-devel/b61d3eeb-6213-afac-2e70-7b9791c86d2e@redhat.com/&quot;&gt;the new backlight userspace API&lt;/a&gt; work which I have planned.&lt;br /&gt;&lt;br /&gt;This first round of testing has shown that native works well even on systems so old that they don&apos;t have acpi_video backlight control support.&lt;br /&gt;&lt;br /&gt;So I have prepared &lt;a href=&quot;https://lore.kernel.org/linux-acpi/20221105145258.12700-1-hdegoede@redhat.com/&quot;&gt;a patch series&lt;/a&gt; to try again with 6.2 by making native be preferred over vendor, which should avoid the problems seen with the 6.1 changes before the fixes.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;https://www.dreamwidth.org/tools/commentcount?user=hansdegoede&amp;ditemid=26862&quot; width=&quot;30&quot; height=&quot;12&quot; alt=&quot;comment count unavailable&quot; style=&quot;vertical-align: middle;&quot;/&gt; comments</description>
  <comments>https://hansdegoede.dreamwidth.org/26862.html</comments>
  <category>backlight</category>
  <category>fedora</category>
  <category>kernel</category>
  <lj:security>public</lj:security>
  <lj:reply-count>0</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>https://hansdegoede.dreamwidth.org/26548.html</guid>
  <pubDate>Thu, 27 Oct 2022 10:33:34 GMT</pubDate>
  <title>Kernel 6.1-rc# might break backlight control on old/weird laptops, please test</title>
  <link>https://hansdegoede.dreamwidth.org/26548.html</link>
  <description>I have landed a large(ish) refactor of the ACPI/x86 backlight detection code in the kernel for 6.1. I have been very careful to try and not break things but there is a special group of laptops where the ability to control the backlight brightness may disappear because of this.&lt;br /&gt;&lt;br /&gt;The most likely laptops to be hit by this are laptops which are either pretty old and or which are weird in some other way (e.g. flashed with coreboot, did not ship with Windows as factory os, ...). Note Chromebooks are affected by this too, but that special category has already been fixed.&lt;br /&gt;&lt;br /&gt;You can check if your laptop is affected by this by running &amp;quot;ls /sys/class/backlight&amp;quot; if this shows only 1 entry and that entry is named &amp;quot;intel_backlight&amp;quot;,  &amp;quot;nouveau_bl&amp;quot;, &amp;quot;amdgpu_bl0&amp;quot; or &amp;quot;radeon_bl0&amp;quot; then your laptop might be affected.&lt;br /&gt;&lt;br /&gt;Note this is quite normal on modern(ish) laptops, a second check is to boot with &amp;quot;acpi_backlight=video&amp;quot; added to the kernel commandline and then run &amp;quot;ls /sys/class/backlight&amp;quot; again, if you now additionally also have an &amp;quot;acpi_video0&amp;quot; entry then your laptop should work fine with 6.1, if you don&apos;t have an &amp;quot;acpi_video0&amp;quot; entry please first do &amp;quot;cat /proc/cmdline&amp;quot; and check that &amp;quot;acpi_backlight=video&amp;quot; is present there.&lt;br /&gt;&lt;br /&gt;If you have e.g. only the &amp;quot;intel_backlight&amp;quot; entry and adding &amp;quot;acpi_backlight=video&amp;quot; does not cause an &amp;quot;acpi_video0&amp;quot; entry to appear then 6.1 will likely break backlight control!&lt;br /&gt;&lt;br /&gt;If you have a laptop which is likely affected by this then please run the following commands:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;ls /sys/class/backlight &amp;gt; ls-backlight.txt&lt;/li&gt;&lt;li&gt;sudo dmesg &amp;gt;&amp;nbsp;dmesg.txt&lt;/li&gt;&lt;li&gt;sudo dmidecode &amp;gt; dmidecode.txt&lt;/li&gt;&lt;li&gt;sudo acpidump -o acpidump.txt&lt;/li&gt;&lt;/ul&gt;And send me an email about this at hdegoede@redhat.com with the 4 generated .txt files attached. If possible please also give an actual 6.1 kernel a try and see if that indeed breaks things. E.g. for Fedora you can find &lt;a href=&quot;https://koji.fedoraproject.org/koji/packageinfo?packageID=8&quot;&gt;6.1 kernel builds here&lt;/a&gt; and see &lt;a href=&quot;https://fedorapeople.org/~jwrdegoede/kernel-test-instructions.txt&quot;&gt;here&lt;/a&gt; for some install instructions for these Fedora kernel builds.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;https://www.dreamwidth.org/tools/commentcount?user=hansdegoede&amp;ditemid=26548&quot; width=&quot;30&quot; height=&quot;12&quot; alt=&quot;comment count unavailable&quot; style=&quot;vertical-align: middle;&quot;/&gt; comments</description>
  <comments>https://hansdegoede.dreamwidth.org/26548.html</comments>
  <category>backlight</category>
  <category>kernel</category>
  <category>fedora</category>
  <lj:security>public</lj:security>
  <lj:reply-count>0</lj:reply-count>
</item>
</channel>
</rss>
