Hacker Newsnew | past | comments | ask | show | jobs | submit | Lanzaa's commentslogin

My first patch is in this release, it was for battery level reporting of a wireless keyboard.

The main AI assistance was in determining why my mouse's battery level was easy to see, but not my keyboard's battery level. Having assistance identifying the information pipeline (kernel -> UPower -> xfce4-power-manager) and then identifying which step was broken was vital for me starting the project. The patch itself was trivial, so no coding assistance was needed.


IMHO this is where AI truly shines; being able to understand a system and its components and analyze them is institutional knowledge that requires a long time for an individual to obtain. AI can do this in a much shorter period and allow contributors otherwise unfamiliar with a codebase to make a meaningful contribution.


Good job :) It sounds daunting enough. Which model of keyboard was that and why were you having trouble with battery levels?


The keyboard is a Logitech G915 TKL. The problem is that when the keyboard was connected via the Logitech Lightspeed adapter the battery levels did not appear in xfce4-power-manager (the taskbar widget). When connected via bluetooth the battery level was visible. The root cause was that the lightspeed usb connector (device id 0xc545), one of many from Logitech, was not associated with the kernel driver needed and defaulted to hid-generic. Keyboard functionality worked, but not the battery level reporting. So my kernel patch was a simple mapping telling the kernel to use the proper, already existing recvr_type_gaming_hidpp_ls_1_3, driver for this previously unknown device id.


Congrat for your patch. Would you mind sharin the merge mail?


So what was actually broken? Just yesterday I set up my wireless keyboard on Ubuntu LTS 26.04 using bluetoothctl and BlueZ seemed to report the battery fine but I didn’t check upower.


The kernel didn't know to use the proper driver for my usb wireless dongle. Adding a few lines of code telling the kernel this usb device id requires this driver was the only change needed.


Nice, congrats on the first patch. Was the keyboard missing from UPower entirely, or was it showing up there and the xfce side just wasn't reading it?


The keyboard, a G915 TKL connected via Lightspeed, was missing from UPower.


I'm rather disappointed their list of enhancements didn't include improving the documentation and debugability of the system.


Have we not?

> there are many fungal infections that occur more frequently in tropical zones or are restricted to certain regions within the tropics [0]

I worry that one of the large variety of fungal species not resistant to high temperature will evolve to be resistant and cause great harm to our society. Similar to the way animal spillover events, like covid-19, are so devastating. A novel pathogen introduced to a naive population.

[0] https://pmc.ncbi.nlm.nih.gov/articles/PMC9834271/


This didn't pass my sniff test. Each of the three key ethics; "Earth Care", "People Care", and "Fair Share", only appear once in the document. I feel like that is a clear rhetorical failure. "Fair Share" triggers my economic mind and made me look directly for their alternative to capitalism, they have none.


> apply the privacy and data protections afforded to children to all consumers and prohibits an online service, product, or feature from, among other things, using dark patterns to lead or encourage children to provide personal information beyond what is reasonably expected to provide that online service, product, or feature or to forego privacy protections

My question, is if "the children" are worth protecting, why not adults? I would like to opt into not having to deal with dark patterns. Why not a age independent system, which a user can opt into and which "children" are automatically optd into.


So, probably a dumb question from me, but why are we "all entitled to at least basic courtesy"? What is the "basic courtesy" that everyone has agreed to follow?

> this has nothing to do with open source or software; it's just common sense when dealing with people

Common sense is very different than entitlement. Back to the open source software point of view, your entitlement is described by the license. Basic courtesy, or even the opportunity to interact with anyone, is not included as a part of any open source license I remember. It isn't even a consideration for most [0].

[0] https://en.wikipedia.org/wiki/Comparison_of_free_and_open-so...


> As a designer of a billion-sold device, your job is to make sure that the expected number of people harmed by your device is substantially less than one

Source? People take risk in their day to day life and should expect to take risk. Why would they expect their microwave to be completely free of risk?


I think there are two key imperatives that lead to company "psychopathy".

The first imperative is a company must survive past its employees. A company is an explicit legal structure designed to survive past the initial people in the company. A company is _not_ the employees, it is what survives past the employees' employment.

The second imperative is the diffusion of responsibility. A company becomes the responsible party for actions taken, not individual employees. This is part of the reason we allow companies to survive past employees, because their obligations survive as well.

This leads to individual employees taking actions for the company against their own moral code for the good of the company.

See also The Corporation (2003 film) and Meditations On Moloch (2014)[0].

[0] https://slatestarcodex.com/2014/07/30/meditations-on-moloch/


I'm working on a jpeg2000[0] decoder in Rust:

https://github.com/iszak/jpeg2000

I wanted to learn about wavelet transforms. I also wanted to use Rust in a non-trivial capacity. Since jpeg2000 uses discrete wavelet transforms[1] and doesn't have a Rust implementation it caught my interest.

[0]: https://en.wikipedia.org/wiki/JPEG_2000

[1]: https://en.wikipedia.org/wiki/Discrete_wavelet_transform


This depends on the camera and the sensor's bayer filter [0]. For example the quad bayer uses a 4x4 like:

    G G R R
    G G R R
    B B G G
    B B G G
[0]: https://en.wikipedia.org/wiki/Bayer_filter


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: