Skip Navigation
shaked_coffee shaked_coffee @feddit.it
Posts 22
Comments 91
Perché non dovrei studiare #Flutter ?
  • Non ho ancora avuto l'occasione di sondare "di persona" il mercato del lavoro, ma direi che no non sbagli purtroppo. La mia speranza è che sia solo questione di tempo (sono entrambi ancora relativamente giovani rispetto ai competitor) però chissà...

    Intanto in bocca al lupo con Java!

  • Perché non dovrei studiare #Flutter ?
  • Arrivo un po’ tardi per portare un punto di vista diverso: a me (decisamente unexperienced developer) Dart e Flutter piacciono molto e per la mia limitata esperienza hanno entrambi grandi vantaggi rispetto agli altri linguaggi e framework.

    Dart a mio avviso combina un po’ il meglio di Java (/ C# / altri linguaggi OO) e Javascript, mantenendo appunto una struttura OO con classi, ereditarietà, fortemente tipizzata ecc. ma allo stesso tempo introducendo una serie di strumenti per la programmazione asincrona (come i futures) un po’ “alla javascript” semplificando così molto l’implementazione di applicazioni complesse (per esempio che richiedono concorrenza o l’utilizzo della rete) rispetto a Java. Ah e il fatto che qualche versione a questa parte sia fortemente null-safe è una comodità a parer mio da non sottovalutare. Come detto sopra non sono un programmatore esperto, ma se ora come ora dovessi scegliere un linguaggio tra Java, Javascript, C# e Dart sceglierei Dart abbastanza a occhi chiusi.

    Su Flutter posso fare un confronto più limitato purtroppo, poiché per il momento l’unico altro framework per costruire UI che ho approfondito veramente è JavaFX (e fidati, anche qui a parer mio Flutter è avanti anni luce). L’unica cosa che mi sento di dire è che all’inizio l’approccio a “albero di widget” lasciava scettico anche me ma in realtà è molto flessibile e snello (supponendo tu stia programmando con un IDE e non dal blocco note s’intende) e la possibilità di fare hot reload e quindi vedere immediatamente nella tua app i cambiamenti grafici che hai appena fatto al codice senza dover rebuildare è una comodità enorme.

    Quindi TL;DR: se hai tempo e voglia, dai a Dart e Flutter una chance e secondo me non te ne pentirai. Ovviamente non sono la soluzione a tutte le esigenze e hanno sicuramente margini di miglioramento, però per molti casi sono secondo me una validissima opzione che nulla ha da invidiare a Java+JavaFX, C#+WPF o JavaScript+[inserire qualsivoglia nome di framework]

  • Question about Llama3 + Open Web UI document management
  • Ok thank you for your explanation! So basically if I would want an LLM to answer me basing itself on a large set of documents this would be the wrong approach (because of the context window problem other comments were mentioning)... but then how could I do?

  • How do I make my immich available publicly?
  • Then I would suggest you to take a look at Reverse Proxies, which are programs that let you publicly expose different services hosted on the same computer under different (sub)domains.

    The easiest to start with (and also probably the one that better fits your needs) afaik is NGINX Proxy Manager, which can be set up really easily using docker, and you can find plenty of tutorials online (here is one I watched when I was starting to look into docker and selfhosting, it's a bit old but should still be valid).

    If after having set up that you will to thinker around it a little bit and dive a bit deeper, there's also Traefik which is pretty cool and also has a lot of materials to learn online.

    I don't remember if the video I linked mention it or not, but to use a reverse proxy to expose your services on the web you will first need to set up a dynamic dns (probably the easiest way is to use Cloudflare) or to ask your ISP for a static IP, then go into your routers settings and find the Port Forwarding section where you should tell your routers to send all the incoming traffic from ports 80 (HTTP) and 443 (HTTPS) to the local IP of your server. And then you should be ready to use spin up Nginx Proxy Manager or Traefik on your server.

    (idk if I was clear or not but I swear it's easier that how it seems ahah)

  • How do I make my immich available publicly?
  • Is immich the only service you want to expose? And did you installed it using docker or directly on your system?

  • Che fine ha fatto il barattolino Sammontana alla stracciatella?

    È da almeno un anno che nei supermercati intorno a me a Milano (Carrefour e Esselunga, sia grandi che "express") sono presenti praticamente tutti i gusti di barattolino tranne quello, che una volta invece c'era insieme agli altri...

    Anche voi avete notato questa cosa? O è una cosa locale? Qualche idea sul quale potrebbe essere la causa?

    0
    Any good Debian-based OS for a laptop?
  • Up! Depending on what you are looking for also VanillaOS could be an interesting option

  • Manjaro or Pop!_OS for Steam games?
  • Long time Fedora user here. I've used Manjaro for a few months before Fedora and I've switched to PopOS! a few months ago because it was better supported from my laptop manufacturer...

    I've to admin I was a bit skeptical about switching to a Debian based distro, because I'm someone who likes to follow the latest news in the field and gets exited to try the latest stuff. But then I did and gosh if it's a smoother experience compared to Fedora! (which itself was a notable smoother experience compared to Manjaro). I'm not saying that Fedora experience was bad, I still think is one (if not the) best compromise between usability and freshness, but I'd say that with Pop I've had even less troubles than with windows! The price of that? Being stuck with Gnome 42 after having tried the goodies of newer ones :/

    TL;DR: If you think you can live without the latest magic from the linux community, to then I'd reccommend you Pop. Otherwise Manjaro is a good distro and from what I can remember NVIDIA drivers works almost out-of-the-box but be ready for some frequent minor troubleshooting sessions

  • Question about Llama3 + Open Web UI document management
  • And where do I find how much token context has my llm?

  • Question about Llama3 + Open Web UI document management

    Today thanks to a NetworkChuck video I discovered OpenWebUl and how easy it is to set up a local LLM chat assistant. In particular, the ability to upload documents and use them as a context for chats really caught my interest. So now my question is: let's say l've uploaded 10 different documents on OpenWebUl, is there a way to ask llama3 which between all the uploaded documents contains a certain information (without having to explicitly tag all the documents)? And if not is something like this possible with different local lIm combinations?

    6
    Anyone has successfully ran XDefiant?
  • Haven't tried yet, but I've seen some people on YT claiming to have done so... If you try it out let me know if you succeed!

  • Ubisoft Connect launcher broken?
  • I was on Wayland, but unfortunately switching to X11 didn't fix the issue

  • Ubisoft Connect launcher broken?
  • Unfortunately yes, but I have the same issue there :((

  • Ubisoft Connect launcher broken?
  • OH I didn't know that ubi games worked that way on Steam, well then I guess this means that AC Odissey (and all other ubi games actually) are broken for everyone playing on linux, steam deck included atm?

  • Ubisoft Connect launcher broken?
  • But wouldn't it still try to update the Ubisoft Connect launcher to its latest version, even if the wine runner is older?

  • Ubisoft Connect launcher broken?

    Yesterday I was trying to install the Ubisoft version of AC Odissey on my PopOS! machine, and I wasn't able to do so because when I try to launch Ubisoft Connect from Lutris, it asks me to do the login and then shows only a black rectangle.

    I tried looking online for a solution but as far as I understood it's a problem of the new Ubisoft Connect UI and I wasn't able to find any fix... can someone help?

    It really sucks because it prevents me to play some games that are supposed to run on Linux just because at the time I bought them on Ubisoft Connect instead of Steam :/

    10
    Android 15 will let you set a default wallet app
  • Can PayPal act as a traditional debit card though? I thought it was only for online or p2p payments

  • InfinityBook Pro 16 - Gen8 restarting out of nowere
  • When it reboots the fans are kinda loud until I enter the password for disk encryption, then everything is as expected. Temperatures are more than ok both before and after the random reboots.

    Sorry for the noob question but, how can I run a memtest on it?

  • InfinityBook Pro 16 - Gen8 restarting out of nowere

    I've recently bought my first Tuxedo laptop, an InfinityBook Pro 16 - Gen8 and after having some minor issues with Fedora on it (mainly with the Tuxedo Control Center) I moved to PopOS! and since then it worked flawlessly. Or at least, it used to work flawlessly until last week, when the laptop started to reboot at (apparently) random points of its usage. This is REALLY annoying.

    Does anyone encountered the same issue? Have you identified its causes? And how have you fixed it?

    4
    Android 15 will let you set a default wallet app
  • Cool. Would be even cooler if there was an alternative to Google Wallet for non-samsung smartphones tho...

  • Conoscete Raccoon for Lemmy? È un'app tutta italiana per utilizzare Lemmy ed è qualcosa di totalmente diverso dalle app del Fediverso con cui avete avuto a che fare. Provatela e fateci sapere!
  • Non la conoscevo! Io dopo parecchio parecchio tempo con Sync (che quando era uscita a parer mio era ben sopra le poche altre opzioni) volevo spostarmi su qualcosa di FOSS e sono capitato su Thunder

    Per ora mi sto trovando abbastanza bene, ma provo volentieri anche Raccoon!

  • recommendations for desktop Lemmy client?
  • I really like Photon, that is a web client but with Firefox PWAs addon can be installed a regular app

    EDIT: just seen someone else wrote the same in a different comment, wooops

  • Enshittification Continues: Discord to begin showing advertisements on it's free platform
  • The closest thing to a Discord server Matrix-wise are Spaces, which basically are groups of Rooms that people can join by invite (and maybe by link? But not sure)

    I see in Matrix as a protocol great potential but it needs some more projects that will focus on the different aspects of communication.

    Element cannot aim to be both a WhatsApp replacement, a Slack replacement and a Discord replacement, but for sure 3 different alternatives for those services can be built all using the Matrix protocol

  • Enshittification Continues: Discord to begin showing advertisements on it's free platform
  • This!

    Discord was great and I'm pretty sure that some projects will take its place (like Revolt maybe that others are mentioning) but PLEASE FOSS PROJECT JUST USE AN INDEXABLE FORUM like Discourse, so that people don't have to signup and enter a server for each project they use!

  • Che ne pensate di Bluesky?

    Ho da poco finito di ascoltare l'episodio del podcast Decoder con l'intervista al CEO di Bluesky e mi è sembrato un progetto molto interessante.

    Quando era uscito (ancora in closed beta) ero molto dubbioso e diffidente vista la loro decisione di creare un nuovo protocollo anziché adottare ActivityPub, ma dopo aver sentito le motivazioni dietro questa scelta e i loro obiettivi per il progetto ho deciso di dargli una chance...

    Voi che ne pensate? Lo usate in parallelo al Fediverso?

    4

    What's your take on Bluesky?

    I recently finished the episode of The Verge's podcast #Decoder with the interview to Bluesky's CEO and it seems a quite interesting project. At the beginning I wasn't looking really into it because of their choice of using a new protocol instead of the existing ActivityPub, but after listening to her and the reasons behind this choice maybe I'll give them a chance.

    What do you think? Do you use it alongside with the fediverse?

    78

    What's the state of the art for KDE Connect Clipboard Sync?

    A couple of years ago with my old phone (running if I don't remember wrong Android Pie) and my old laptop (running Manjaro KDE) I discovered KDEConnect and how it could enable a clipboard sharing feature similar to the one Apple provides between Macs and iPhones. It was great! Now, after having changed both my phone (now running Android 14) and my laptop (now running PopOS! 22.04) I wanted to reproduce that magic but I found out that with Android 10 some complications regarding clipboard sharing arrived and so it doesn't work out-of-the-box anymore :(

    I found some saying that the only way to do that was by the persistent notification button (still ok but meh) and some others reccomending some adb commands to make it work as it was before (which would be great but I wanted to investigate a bit more before pasting some random commands to my terminal)... but it was all kinda old content (referring to Android 10 or at most 11), what's the situation as of today? Do you use clipboard sync? And if so, how?

    22

    Immich sta per cambiare logo!

    github.com Immich Logo Design Contest · immich-app/immich · Discussion #6318

    Hello, Immich fan! As Immich started as a personal hobby project, I didn't expect it to grow as big and as fast as it is. The logo and the font for the name were quick iterations to develop somethi...

    Immich Logo Design Contest · immich-app/immich · Discussion #6318

    L'alternativa self-hosted a Google Photos Immich ha indetto (già due settimane fa in realtà, ma io lo scopro ora) un contest per un nuovo logo visto che quello attuale per quanto caratteristico non è ideale per diversi motivi (primo tra tutti secondo me fa apparire il progetto come qualcosa ancora di acerbo e sperimentale, piuttosto che una valida alternativa a servizi come Google Photos o iCloud Photos)

    In palio $200 per l'autore del logo che verrà scelto, quindi se vi divertite a cimentarvi nella grafica digitale e nel design perché non provare?

    Altrimenti (se vi va) date un occhio alle proposte fatte fin'ora e votate la vostra preferita! A me piace molto la proposta di Tyree :)

    0

    Which server would you reccommend to selfhost for personal use in 2024?

    Since I recently set up a decently powerful homelab, with a bunch of services running on docker behind traefik, I thought it would have been cool to try out selfhosting a matrix homeserver for personal use (at the beginning it will be just me, potentially it will extend to some friends and/or a small organization of around 20 people working together). At first I was thinking about going with Dendrite, but then I've seen it still doesn't support Threads, nor Matrix 1.5 API and that despite the announcement of a couple of months ago its repo hasn't yet be moved to the new element-hq GitHub as it happened with Synapse. This made it seem kinda like a "2nd class citizen" compared to Synapse, and therefore made me think if the latter would have been a better option to selfhost. And then I bumped into Conduit.rs so now I have 3 option to be undecided about!

    Therefore, here I am asking for your preferences and advices: which is your favourite one / which one would you recommend for my use-case?

    7

    Slimbook Executive 16 VS Tuxedo InfinityBook 16 Gen 8?

    I know this question has been asked many and many times, but a) this kind of things can change with time (bugs may get fixed or appear, new generations can fix hw problems and get new ones, etc.) and b) I didn’t find it on Lemmy yet (but maybe this is just me being bad searching stuff in the fediverse), so here it is once again.

    So, I need to buy a new laptop and I’m undecided between those two machines that, from what I’ve seen, are very very similar, but not exactly the same (apart from the chassis, that should be exactly the same, right?)… What are some differences I could use to decide?

    And, if you own one of this two, would you recommend it? Why/Why not?

    1

    TAB S2 bttery draining even when it says “in charge”

    In the last months, the battery of my S2 tablet was draining really quickly, untill it died and I wasn’t able to recharge it. So, I thought that the battery was dead (it served me for a bunch of years so it could have been acceptable) and I ordered on Amazon a new battery to replace it.

    After replacing the battery, though, the tablet turned on saying the new battery was at 50% and, when plugged in, it was acting as if it was charging. Apart from the fact that it wasn’t charging the battery that instead was quickly draining even if plugged in.

    Obviously I tried cleaning the charging port, changing cable, changing power adapter, changing socket on the wall, but nothing worked. So I assumed that the new battery they sent me was broken and I purchased a new one but when it arrived: exactly same situation.

    Could it be that I was very unlucky and I got a broken new battery twice? Or maybe the problem is somewhere else? Did anyone encounter a similar issue?

    4

    Best way to set up cloudflare dynamic DNS in late 2023?

    I’m finally moving my selfhosting experiments from a VPS to a physical machine in my house but, since I don’t have a static IP address, I opted to use the dynamic dns service offered by Cloudflare.

    On their official website I’ve seen suggested ddclient but I haven’t find that much information on which labels should I add to set it up. Therefore, I’ve also found this docker image that seems pretty clean and easy to set up, but the video talking about it was of 3 years ago and I’ve seen that the github repository has been archived last year…

    Which option (not necessarily among the two above) do you prefer to set up your Dynamic DNS with Cloudflare? (I don’t know if this can be an important information to add or not, but the Linux server I’m using is running NixOS)

    22

    Quale alternativa a GSuite preferite per progetti collaborativi?

    Ciao amici di LeAlternative, vengo qui da voi in cerca di un parere:

    Sto iniziando assieme a due amici un nuovo progetto che potenzialmente in futuro dovrebbe coinvolgere molte più persone e, siccome per progetti simili in passato si è sempre utilizzata una combo GSuite+Slack che si è sempre rivelata vincente, loro due hanno provveduto subito a creare la prima cartella condivisa su Drive. Tuttavia, siccome appunto si tratta di un progetto nuovo, pensavo che potrebbe essere l’occasione giusta per proporre strumenti liberi alternativi a i soliti che usiamo, anche perché potrebbe essere un buon modo per raggiungere con tali strumenti persone non tech-savy e che non si sono mai interessati della loro privacy online prima d’ora.

    Per quanto riguarda #Slack pensavo di provare un po’ #RocketChat e vedere se può fare al caso nostro, ma la cosa che più mi preme sostituire in realtà è la suite di Google. In particolare, le nostre esigenze sarebbero:

    • archiviazione (stile Google drive)
    • documenti di testo (stile Google Documents)
    • fogli di calcolo (stile Google Spreadsheets) che dovrebbero avere le seguenti caratteristiche:
    • feature collaborative “di base” come cartelle condivise con alcuni utenti, possibilità di modificare contemporaneamente uno stesso documento e di lasciare commenti
    • possibilità di utilizzo agevole (cioè semplice anche per utenti per cui Google docs è il massimo della tecnologia a cui l’umanità è arrivata) sia da mobile (Android e iOS) che da web
    • possibilità di fare self-hosting o possibilità di utilizzarle con un piano gratuito (se il progetto dovesse proseguire e ingrandirsi e il prezzo è ragionevole non sarebbe un problema pagare, ma ora come ora siamo solo in 3 e tutti abbastanza squattrinati 😅)

    PS: so che sul sito di LeAlternative è già presente un articolo molto esaustivo sulle possibili alternative a Google Drive e infatti dopo averlo letto mi ero già fatto una mezza idea su quale servizio potrei tentare a proporre, ma ho deciso di fare questo post per sentire più pareri da parte di chi queste alternative le utilizza o le ha utilizzate nel pratico

    8

    Selfhosted Trello Alternative?

    My team wanted to start using Trello to better organize the work we have to do and, since I believe it's much easier to start using foss software from the beginning rather then switching to it after years of using something else, I wanted to suggest now a different option, possibly selfhosted.

    I've seen online that there is Focalboard that seems to be what we are looking for but I've seen it recently switched from being backed by mattermost team to be community-driven and I didn't found enough documentation on how to install it with docker on an arm server... Does anyone use it? Is it a good option or there are better ones? And if you're using it, could you help me spinning it up?

    23

    Quale operatore scegliere?

    Ciao popolo di Feddit! Qualche giorno fa ho ricevuto la spiacevole notizia che la mia attuale offerta mobile con Fastweb dal prossimo mese passerà a €8.95 /mese (contro i €4.95 attuali), per cui stavo pensando di cambiare operatore.

    Io non ho grandi esigenze di giga (già con 10GB o giù di lì dovrei essere apposto, poi se sono di più tanto meglio) però mi interessa che la copertura sia buona e che, almeno nella maggior parte dei casi, si possa navigare ad una velocità che non mi faccia dire "che palle mentre scorro Instagram o YouTube.

    Voi che operatore avete? E come vi trovate? Da una prima ricerca online ho. Coopvoce e Iliad mi sembrano quelli più papabili... qualche esperienza con qualcuno di questi?

    EDIT: mi sono dimenticato di dirlo perché lo davo per scontato, visto che ero abituato a pagare €4.95/mese mi piacerebbe trovare l'offerta più vicina a quel prezzo (anche se sono consapevole che molto probabilmente dovrò salire un po') che però soddisfi le mie necessità :)

    15

    Fairphone 5 Announced!

    Looks like a new model for the Fairphone has been announced! What do you think about it?

    Personally I love the fairphone project but after having tried GrapheneOS on my Pixel 6a it would be hard to move to a different OS

    76

    Riflessione sotto l’ombrellone: Amministrazioni Comunali e OpenStreetMaps

    ⚠️ Questo è un crosspost, se avete commenti da fare sono i benvenuti, ma vi invito a farli sotto il post originale nella comunità [email protected], così che la discussione non si disperda in più comunità

    crosspostato da: https://feddit.it/post/1197600

    > Questa mattina stavo parlando con amici sotto l’ombrellone ed è venuto fuori che il loro comune ha pagato una qualche agenzia per far aggiungere su Google Maps le ciclabili della città, così che ai cittadini che sceglievano l’opzione “bici” per i tragitti venissero suggeriti i tratti dotati di pista ciclabile e non venissero mandati su strade più pericolose o comunque più scomode. > > L’idea mi era sembrata lodevole ma in quanto convinto sostenitore della campagna Public Money, Public Code della FSFE, non ho potuto fare a meno di suggerire che sarebbe stato più giusto che il comune andasse a investire e suggerire ai cittadini le mappe di OpenStreetMaps, piuttosto che quelle di Google. > > Poiché alcuni amici non avevano mai sentito parlare di OpenStreetMaps, ho spiegato loro cosa fosse per poi farglielo vedere dall’app attraverso cui lo uso quotidianamente che è Organic Maps (che personalmente preferisco alle altre in quanto la trovo molto più curata nell’ambito UI/UX e semplice da utilizzare per chiunque, anche i meno “smanettoni”). > > Tuttavia, abbiamo notato insieme che Organic Maps non usa le informazioni sui percorsi ciclabili presenti su OpenStreetMaps nella pianificazione dei tragitti e, dopo una veloce ricerca online, mi pare di aver capito che l’unica app mobile che usa questi dati sia OsmAnd (che, pur ritenendola io un’app valida e ben fatta, presenta una UI/UX ben diversa da quella semplice e moderna di OrganicMaps). > > Più o meno all’unanimità, abbiamo convenuto che il comune non poteva promuovere a tutti i cittadini l’utilizzo di OsmAnd al posto di Google Maps (ovviamente senza nulla togliere a OsmAnd e alle persone che ci sono dietro) e che dunque la scelta di migliorare e raccomandare le mappe di Google non era poi così sbagliata. > > Tutto questo lungo preambolo era per introdurre questa mia riflessione: > > Se un ente pubblico come un comune (piccolo, non sto parlando di città come Roma > o Milano) proponesse a un’app open-source come OrganicMaps una qualche somma > affinché gli sforzi degli sviluppatori si concentrino sull’implementazione di > una specifica funzionalità, questa cosa come verrebbe vista agli occhi della > comunità che sta dietro a quell’app e a OSM in generale? > Pensate che sarebbe un’iniziativa apprezzabile e utile, o un’interferenza non > opportuna nel lavoro di altri?**

    18

    Riflessione sotto l’ombrellone: Amministrazioni Comunali e OpenStreetMaps

    Questa mattina stavo parlando con amici sotto l’ombrellone ed è venuto fuori che il loro comune ha pagato una qualche agenzia per far aggiungere su Google Maps le ciclabili della città, così che ai cittadini che sceglievano l’opzione “bici” per i tragitti venissero suggeriti i tratti dotati di pista ciclabile e non venissero mandati su strade più pericolose o comunque più scomode.

    L’idea mi era sembrata lodevole ma in quanto convinto sostenitore della campagna Public Money, Public Code della FSFE, non ho potuto fare a meno di suggerire che sarebbe stato più giusto che il comune andasse a investire e suggerire ai cittadini le mappe di OpenStreetMaps, piuttosto che quelle di Google.

    Poiché alcuni amici non avevano mai sentito parlare di OpenStreetMaps, ho spiegato loro cosa fosse per poi farglielo vedere dall’app attraverso cui lo uso quotidianamente che è Organic Maps (che personalmente preferisco alle altre in quanto la trovo molto più curata nell’ambito UI/UX e semplice da utilizzare per chiunque, anche i meno “smanettoni”).

    Tuttavia, abbiamo notato insieme che Organic Maps non usa le informazioni sui percorsi ciclabili presenti su OpenStreetMaps nella pianificazione dei tragitti e, dopo una veloce ricerca online, mi pare di aver capito che l’unica app mobile che usa questi dati sia OsmAnd (che, pur ritenendola io un’app valida e ben fatta, presenta una UI/UX ben diversa da quella semplice e moderna di OrganicMaps).

    Più o meno all’unanimità, abbiamo convenuto che il comune non poteva promuovere a tutti i cittadini l’utilizzo di OsmAnd al posto di Google Maps (ovviamente senza nulla togliere a OsmAnd e alle persone che ci sono dietro) e che dunque la scelta di migliorare e raccomandare le mappe di Google non era poi così sbagliata.

    Tutto questo lungo preambolo era per introdurre questa mia riflessione:

    Se un ente pubblico come un comune (piccolo, non sto parlando di città come Roma o Milano) proponesse a un’app open-source come OrganicMaps una qualche somma affinché gli sforzi degli sviluppatori si concentrino sull’implementazione di una specifica funzionalità, questa cosa come verrebbe vista agli occhi della comunità che sta dietro a quell’app e a OSM in generale? Pensate che sarebbe un’iniziativa apprezzabile e utile, o un’interferenza non opportuna nel lavoro di altri?**

    0
    Fedora Linux @lemmy.ml shaked_coffee @feddit.it

    MSI Laptop wakes up immediately after entering sleep mode

    0

    MSI Laptop wakes up immediately after entering sleep mode

    UPDATE:

    After some more testing, trying to disable one by one the entries on proc/acpi/wakeup and comparing them with the output of lspci, I think I found out that the problem is related with the PCIE components that idk why send a wake-up signal to the system every time it enters sleep mode. As a temporary fix, I created a service that runs a script to disable those four lines every time I start / reboot the system, waiting for a proper fix in a future kernel update. Here are the two files I created:

    /etc/systemd/system/disable-PCIE-wakeup.service: ``` [Service] Type=oneshot RemainAfterExit=yes ExecStart=/usr/local/bin/disable-PCIE-wakeup.sh

    [Install] WantedBy=multi-user.target ```

    /usr/local/bin/disable-PCIE-wakeup.sh: bash #!/bin/sh for i in $(cat /proc/acpi/wakeup | grep RP | grep enabled | grep S4 | awk '{print $1}'); do echo $i > /proc/acpi/wakeup; done

    (and after creating those files, I enabled the new service with sudo systemctl enable disable-PCIE-wakeup.service)

    ---

    ORIGINAL POST:

    Some time ago I posted on Fedora Discussion because my Fedora system (MSI Summit e16 flip running Fedora 38) started having problems with sleep mode after a kernel update (actually, starting from kernel 6.3.x and with all later versions).

    Unfortunately I didn't receive that many replies there, so I tried to troubleshoot by myself and I found out that what's causing this problem is probably an internal device of the laptop that is supposed to be used to wake up the laptop from sleep (like the touchpad or the fingerprint reader? idk) and that instead is misfunctioning and waking it up immediately after it reached the sleep state. I'm saying so because I tried to temporarily disable all the lines in /proc/acpi/wakeup using this simple script below that I found somewhere online and, after doing that until the next time I reboot, the laptop stays asleep as expected.

    So now my question is: how do I isolate which device is causing the problem? And how can I permanently fix this issue? I suspect that the problematic device could be the fingerprint reader since it was unsupported up until Fedora 38 and doesn't still work properly since it keeps forgetting the fingerprints I add... is there a way for me to disable it completely and try to see if it fixes the issue?

    (I’m not sure about if this is the proper place to ask questions like this, or if I should report this issue somewhere else, since it seems more a kernel issue. Recommendations about better place to ask it are welcomed 🙃)

    9