AI can speed up a lot of the manual labour needed to bring even an almost dead, 10-year-old device back to life. My Xiaomi Mi Max 2 (oxygen, MSM8953) was dead. With AI help and my own knowledge, I ported/rewrote the missing drivers, and it now runs Nura (postmarketOS) with working camera, torch, SIM, phone calls and SMS. Only the loudspeaker is still broken.

Everything is up for anyone who wants to install it, or to understand the changes and manually write the patches for mainline: https://github.com/sv1sjp/mi-max2-oxygen-msm8953-nura-drivers Testing, feedback and PRs welcome.

  • erebion@news.erebion.eu
    link
    fedilink
    English
    arrow-up
    20
    arrow-down
    12
    ·
    22 hours ago

    Well, we know the best practices for the Nura project:

    We forbid the use of generative AI tools in Nura.

    It’s literally the first sentence of their policy.

    since it’s better at reverse engineering and bug hunting than developing when compared to a human

    Citation needed.

    • Shayeta@feddit.org
      link
      fedilink
      English
      arrow-up
      6
      arrow-down
      4
      ·
      edit-2
      19 hours ago

      It’s literally the first sentence of their policy.

      Yes, but what about the 2nd sentence?

      The following is not allowed in Nura:

      • Submitting contributions fully or in part created by generative AI tools to Nura.
      • Recommending generative AI tools to other community members for solving problems in the Nura space.

      As you can see, it says nothing about researching, troubleshooting, reverse-engineering, etc. As long as you write and understand the code yourself AI is allowed for everything else. As long as you’re not using generative AI it’s fine.

      Citation needed.

      My personal experience working with AI over the past year. And if that’s not enough, here’s also Linus Torvalds himself.

      The arguments regarding resource use and profiting off of theft are valid. The arguments regarding the nature and capabilities of the tech are not. Developers ARE responsible for the code they submit, regardless of how it was created.

      • Arthur Besse@lemmy.mlM
        link
        fedilink
        English
        arrow-up
        2
        ·
        34 minutes ago

        As you can see, it says nothing about researching, troubleshooting, reverse-engineering, etc. As long as you write and understand the code yourself AI is allowed for everything else. As long as you’re not using generative AI it’s fine.

        I’m not sure if you’re joking or legitimately confused, but, assuming the latter, fyi the “AI” that people use for “researching, troubleshooting, reverse-engineering, etc” is part of what is called “generative AI”. Given this, it’s not much a stretch to read it as saying that even posting in Nura forums about the existence of @sv1sjp@lemmy.world’s github repo would actually be a violation of Nura’s policy (as of today; I expect it will evolve in the not-too-distant future).

        • Shayeta@feddit.org
          link
          fedilink
          English
          arrow-up
          2
          ·
          16 minutes ago

          That’s fair. It would certainly align with the described “spirit” of the policy. Hopefully it becomes clearer in the future.

      • erebion@news.erebion.eu
        link
        fedilink
        English
        arrow-up
        6
        arrow-down
        3
        ·
        edit-2
        19 hours ago

        It’s not a good tool for research, it will just generate a hallucination and you end up doing something which does not work or just works somehow, but is not done correctly and will break in the future.

        I talked to quite a few people recently at the postmarketOS and Alpine Linux conference, it definitely was noticed that more contributions are now coming in that do things wrong or in a subtly broken way and the submitting people have no clue.

        If you rely on a lying computer for research, then your code will lie to you.

        • sudoer777@lemmy.ml
          link
          fedilink
          English
          arrow-up
          2
          arrow-down
          1
          ·
          26 minutes ago

          I’ve used AI for low level debugging on things that are basically undocumented to fix my personal machines, doesn’t eliminate the trial and error process but it’s gotten me farther a lot faster than if I were to do it on my own.

        • Shayeta@feddit.org
          link
          fedilink
          English
          arrow-up
          9
          arrow-down
          4
          ·
          19 hours ago

          I rely on it to scour the docs, the forums, the codebases for any and all potential solutions and neatly present them to me. I then validate and evaluate myself. Just going with the first thing the AI suggests is lunacy and is exactly what I meant by “people are still discovering best practices”.

          • erebion@news.erebion.eu
            link
            fedilink
            English
            arrow-up
            3
            arrow-down
            5
            ·
            edit-2
            10 hours ago

            Or just use Ecosia or DuckDuckGo.

            A search engine finds you places to look at and doesn’t hallucinate incorrect details.

            I know it’s perfectly possible to do mainlining of a device and work on the kernel stuff simply by reading stuff, asking people and bouncing ideas while strengthening the community in the process and having fun with other phone hackers.

            • Shayeta@feddit.org
              link
              fedilink
              English
              arrow-up
              4
              arrow-down
              1
              ·
              18 hours ago

              Unless you’re doing something extremely common with well-established patterns, search engines have sucked for the past 14 years and been unusable for the past 8. For most of that time I would just refer to official docs, and official code examples, avoiding stackoverflow and other forums since they were just filled with outdated or plain bad info.

              Search engines like Kagi might still be decent, but they are few.

            • sv1sjp@lemmy.worldOP
              link
              fedilink
              English
              arrow-up
              5
              arrow-down
              4
              ·
              18 hours ago

              Υes good luck finding solutions with closed source drivers by using only Search Engines and not at the end of the day…reverse engineering… I mean, technically feasible, but I cannot understand why we skip the HUGE AMOUNTS OF TIME that this kind of work needs to be done. And expertise.

              The repository is here with an auto-installer script for anyone interested, the research is here for anyone to study and try to manually implement them to main-line. That’s the beauty of open source.

              All in all, The device is alive again, so I would need to consume less new electronic devices in the feature so I will protect more the planet with not needing a new phone/smallserver than some data centers that I do not control!

    • emergencyfood@sh.itjust.works
      link
      fedilink
      arrow-up
      5
      arrow-down
      5
      ·
      14 hours ago

      They have given five reasons for not using AI:-

      • water and energy use
      • worker exploitatio
      • worker layoffs
      • use of other’s work without consent
      • not understanding what the code is actually doing

      Of these, the first is a result of using fossil fuels, the second and third are a result of capitalism, and the fourth is only a problem if you believe in the whole ‘intellectual property’ charade. Only the fifth is an actual issue with AI, and that can be solved by either mandating human review, or marking AI-generated code as such and letting users use or exclude it.

      • diaphragmwp@discuss.tchncs.de
        link
        fedilink
        arrow-up
        4
        arrow-down
        2
        ·
        8 hours ago

        You are forgetting that basically everything is de-facto capitalism. If you use this in Christiania, you step out to Denmark and suddenly you are no longer ethical because you are contributing to capitalism.

        Oh, and you are forgetting 6: can only be trained by data harvesting corporations. Open weight != open source.

        • emergencyfood@sh.itjust.works
          link
          fedilink
          arrow-up
          1
          ·
          1 hour ago

          basically everything is de-facto capitalism

          I wouldn’t go that far. The majority mode of production of the world today is capitalism. But that doesn’t mean ‘everything’ is capitalism. Neither does it mean that the majority mode of production of the world will be capitalism tomorrow.

          The same applies to energy production from fossil fuels. In fact, there the transition (to renewables) is far more visible.

          If you use this in Christiania, you step out to Denmark

          Did you miss a connecting statement? What is Christiania?

          can only be trained by data harvesting corporations

          What is the problem here? The data-harvesting part or the corporations part?

          • diaphragmwp@discuss.tchncs.de
            link
            fedilink
            arrow-up
            1
            ·
            edit-2
            10 minutes ago

            that doesn’t mean ‘everything’

            I said basically.

            Neither does it mean that the majority mode of production of the world will be capitalism tomorrow.

            Wanna bet? I close my eyes, sleep, wake up sometime (hopefully) then check.

            Christiania

            Intentional anarcho-communistic commune somewhere in the middle of Denmark. Denmark is fine with it because it’s making tourist money. It’s like a cool fact, like “did you know there’s a place where people avoid using money”. Obviously, they go out sometimes. Apart from that, stuff done there that is only “ethical outside of capitalism” isn’t ethical for the outside world. If someone does vibecoding there and considers it ethical for some reason but not outside (like the de facto lack of enforcement for intellectual property because it’s no longer needed), people outside still can’t use the work ethically. From what I’ve heard, they aren’t even really good with computers there, and I am not aware of any attempts to make their own.

            can only be trained by data harvesting corporations

            What is the problem here? The data-harvesting part or the corporations part?

            Both? Some people don’t want data harvesting yet it’s done. The CEO gets capital, so do investment companies and maybe some client companies.

            EDIT: even if the electricity is sourced “ethically” (no), the compute itself is attributing to climate change.

            • emergencyfood@sh.itjust.works
              link
              fedilink
              arrow-up
              1
              ·
              6 minutes ago

              I said basically.

              Ah, so there are alternatives.

              Wanna bet? I close my eyes, sleep, wake up sometime (hopefully) then check.

              If you can sleep as long as Rip van Winkle, you might see it change.

              (Obviously the error margins are huge, but I expect capitalism to stop being the majority economic system in the world in about thirty years. Emphasis on the ‘about’.)

              anarcho-communistic commune

              Okay, so mentally children. Expect nothing significant from them.

              Both? Some people don’t want data harvesting yet it’s done. The CEO gets capital, so do investment companies and maybe some client companies.

              I don’t think data harvesting per se is going away. Even in an ideal world, the state would need to collect a lot of data about people to efficiently allocate resources (i.e. budget correctly). As for corporations, the CEO getting capital, and so on, those are results of capitalism.

        • erebion@news.erebion.eu
          link
          fedilink
          English
          arrow-up
          3
          arrow-down
          2
          ·
          7 hours ago

          Just that.

          There is no true life within a false life.

          The philosopher Theodor Adorno sums it up quite well.

          Slavery, for example, wasn’t solved by handing slaves over to nicer owners, but by ending it.

          In a similar way, it’s not possible to improve the world by using exploitative tools, you can’t improve something while destroying it.

          For example, not using text generators because of the fossil fuels that this will burn is a good point. Just because it could use electricity from sustainable sources, does not mean it won’t hurt humanity to use it.

          Just because it could be better does not mean it is.

          I decided to not have a car, because while those can be made to hurt the planet less, they do hurt the planet a lot. And there’s already public transport. Even electric cars aren’t better than taking the train. And I live in a place where this works quite well, so I do that.

          I can do better now, not in the future when LLMs might (or might not) better.

          I don’t buy products that will quickly be trash just because the companies could build bettee products. We have a choice.

          (Footnote: Adorno wrote that sentence looking at the fascist terror in Europe in the 40s. What he is saying, basically: You can’t do the right thing when you live in a system that punishes that. Try to start a protest against cruel Nazis and you’re dead. You can’t further understanding among nations under those circumstances.)

          Sorry for the wall of text, having lots of thoughts.

      • erebion@news.erebion.eu
        link
        fedilink
        English
        arrow-up
        5
        arrow-down
        4
        ·
        10 hours ago

        I just hear “Let’s exploit others, it’s the fault of capitalism, not the fault of those driving exploitation”.

        That’s not how you make the world a better place.

        • emergencyfood@sh.itjust.works
          link
          fedilink
          arrow-up
          1
          arrow-down
          1
          ·
          57 minutes ago

          You make the world a better place with the tools you have in this world. If you wait for perfect tools, you will get nowhere.

          In the case of AI, your choices are over whether and which models you use. Your choice has zero impact on what others do with it. Let us take OP’s case. Their choices are (1) run an AI for some time to make an older phone model usable for some more years, and (2) don’t, and have a bunch of people buy newer phones. In this case, option 1 is clearly the better choice, in terms of energy and water use, economics, etc.

    • Ptsf@lemmy.world
      link
      fedilink
      arrow-up
      13
      arrow-down
      12
      ·
      22 hours ago

      What a genuinely antithetical stance to take on a project meant to keep otherwise dying hardware alive, but that’s the beauty of open source. You don’t have to give a damn about upstream, just fork and rebase into your own little niche and move on.

        • Ptsf@lemmy.world
          link
          fedilink
          arrow-up
          11
          arrow-down
          6
          ·
          18 hours ago

          The reasons stated are not immediate granted fact, nor are they all logical. Again, fork it and move on. Nura can have whatever policy they’d like, but it doesn’t make sense not to use a tool, that it should be obvious by now can accomplish the prototyping work of entire engineering teams. In a good enough fashion to create software for revitalizing what would otherwise be ewaste. To me that doesn’t sit well with their goals, at least as applied to this reality. You can have whatever opinion on it you’d like, I know there’s a cult of anti ai on lemmy and in open source software, and I do sympathize with some of their viewpoints and the legitimate concerns.

          • erebion@news.erebion.eu
            link
            fedilink
            English
            arrow-up
            2
            arrow-down
            2
            ·
            7 hours ago

            The post from Casey, linked by lenni, addresses exactly those points. It’s still extractive and hurts communities.

            • Ptsf@lemmy.world
              link
              fedilink
              arrow-up
              4
              arrow-down
              2
              ·
              edit-2
              6 hours ago

              So is manufacturing new electronics. You don’t get a perfect solution, and frankly, local ai already exists that’s good enough for this type of prototyping. I’ve read through their reasoning and while I can sympathize, I do not agree with it. It’s not realistic or accomplishing their goals imo, but I maintain that’s the beauty of open source. Fork it. Move on. Thank them for their contribution.

              • erebion@news.erebion.eu
                link
                fedilink
                English
                arrow-up
                2
                arrow-down
                2
                ·
                6 hours ago

                Yes, new electronics are part of the problem, that’s why the community brings Linux to old phones.

                • Ptsf@lemmy.world
                  link
                  fedilink
                  arrow-up
                  4
                  arrow-down
                  2
                  ·
                  6 hours ago

                  Except it doesn’t bring it to all old phones, ai can massively help resolve this.

                  • erebion@news.erebion.eu
                    link
                    fedilink
                    English
                    arrow-up
                    2
                    arrow-down
                    2
                    ·
                    5 hours ago

                    Buying a used phone that is already at least somewhat supported is better than slop-coding another phone and wasting resources in the process and then others having to clean up the code that nobody actually understands.