uclogic_para..._has_battery(9)
π uclogic_para..._has_battery(9) β Kernel API Manual, but make it make sense
okay so bestie, this is a page from the Kernel API Manual (the (9) means it's a kernel-internal function page, iykyk) and it's all about one very specific little question: does this UGEE v2 tablet have a battery or not. That's it. That's the whole vibe check. π¦
β¨ NAME β¨
uclogic_params_ugee_v2_has_battery β checks whether a UGEE v2 device has a battery or not, no cap. π
πΈ SYNOPSIS πΈ
bool uclogic_params_ugee_v2_has_battery (struct hid_device *hdev );
like literally just hand it a hdev and it tells you yes or no, periodt.
π ARGUMENTS π
hdevβ the HID device of the tablet interface. that's the one you're asking about, bestie π
β RETURN β
Returns True if the device has a battery, and false otherwise. that's the whole answer, no plot twist π«Ά
π SEE ALSO π
Kernel file ./drivers/hid/hid-uclogic-params.c β that's where the actual source lives, go look if you're curious (you should be, it's giving main character energy β¨)
and the whole friend group of related pages, all of them, in order:
uclogic_params_pen_inrange_to_str(9)uclogic_params_pen_hid_dbg(9)uclogic_params_frame_hid_dbg(9)uclogic_params_hid_dbg(9)uclogic_params_get_str_desc(9)uclogic_params_pen_cleanup(9)uclogic_params_pen_init_v1(9)uclogic_params_get_le24(9)uclogic_params_pen_init_v2(9)uclogic_params_frame_cleanup(9)uclogic_params_frame_init_with_desc(9)uclogic_params_frame_init_v1(9)uclogic_params_cleanup_event_hooks(9)uclogic_params_cleanup(9)uclogic_params_get_desc(9)uclogic_params_init_invalid(9)uclogic_params_init_with_opt_desc(9)uclogic_params_huion_init(9)uclogic_probe_interface(9)uclogic_params_parse_ugee_v2_desc(9)uclogic_params_ugee_v2_init_frame_buttons(9)uclogic_params_ugee_v2_init_frame_dial(9)uclogic_params_ugee_v2_init_frame_mouse(9)uclogic_params_ugee_v2_init_battery(9)uclogic_params_ugee_v2_reconnect_work(9)uclogic_params_ugee_v2_init_event_hooks(9)uclogic_params_ugee_v2_init(9)uclogic_params_init(9)
π heads up bestie: this page lives under ./drivers/hid and it's dated October 2026 β that's the source/version and date info, tucked into the sign-off instead of a boring footer. slay. π
π
anyway ily, go check your battery, bye ππ¦πΈ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms