|
@@ -366,24 +366,33 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
grows a window to the full work area (snapping when dragged into the screen
|
|
grows a window to the full work area (snapping when dragged into the screen
|
|
|
corner). The kernel hit-test uses the same order.
|
|
corner). The kernel hit-test uses the same order.
|
|
|
The right-aligned date/time text is itself a click target: `draw_bar()`
|
|
The right-aligned date/time text is itself a click target: `draw_bar()`
|
|
|
- records its rectangle, the pointer highlights it, and a click spawns
|
|
|
|
|
- `/ramfs/bin/settime` (the `Clock` launcher still opens the analog clock).
|
|
|
|
|
|
|
+ records its rectangle, the pointer highlights it, and a click opens the
|
|
|
|
|
+ control panel (the `Clock` launcher still opens the analog clock).
|
|
|
The rightmost bar item is the AC/battery status icon: a plug while the
|
|
The rightmost bar item is the AC/battery status icon: a plug while the
|
|
|
adapter is online and a level-filled battery on battery. Hovering it paints
|
|
adapter is online and a level-filled battery on battery. Hovering it paints
|
|
|
- a percentage tooltip below the bar, above every window. To its left is the
|
|
|
|
|
- network status icon: a cable for a wired netdev, signal bars for an
|
|
|
|
|
- associated WiFi link, a USB mark for RNDIS tethering, and a red X otherwise.
|
|
|
|
|
- The WM polls `SYS_NET_INFO` (and `SYS_WIFI_STATUS` only while WiFi is active)
|
|
|
|
|
- at 1 Hz; clicking the network icon opens one `/ramfs/bin/netmenu` popover and
|
|
|
|
|
- anchors it under the icon (`u_wm_set_geom`). A popover is a chromeless
|
|
|
|
|
- `WIN_F_POPOVER` canvas window (`u_win_create_popover`): the WM skips the
|
|
|
|
|
- title bar/close/resize chrome and treats it as always topmost in painting
|
|
|
|
|
- and hit-testing. The canvas fills the whole window rectangle: there is no
|
|
|
|
|
- outer shadow, rim or rounded corner, so it reads as a flat menu panel. The
|
|
|
|
|
- kernel uses the window origin for content-relative pointer and scroll
|
|
|
|
|
- coordinates (a normal window uses the 1 px border plus title bar). An
|
|
|
|
|
- outside press dismisses the popover and then continues with the normal
|
|
|
|
|
- click handling; a second click on the network icon toggles it.
|
|
|
|
|
|
|
+ a percentage tooltip below the bar, above every window; clicking it opens
|
|
|
|
|
+ the control panel. To its left is the network status icon: a cable for a
|
|
|
|
|
+ wired netdev, signal bars for an associated WiFi link, a USB mark for RNDIS
|
|
|
|
|
+ tethering, and a red X otherwise. The WM polls `SYS_NET_INFO` (and
|
|
|
|
|
+ `SYS_WIFI_STATUS` only while WiFi is active) at 1 Hz. The whole right
|
|
|
|
|
+ status area is one click target: the temperature, clock, network and
|
|
|
|
|
+ AC/battery items and the gaps between them toggle one
|
|
|
|
|
+ `/ramfs/bin/netmenu` control popover, anchored flush against the bottom of
|
|
|
|
|
+ the top bar and the right screen edge (`u_wm_set_geom`). It opens
|
|
|
|
|
+ collapsed: the battery/clock summary and
|
|
|
|
|
+ the Quick settings pills are visible, while the network, power-mode and
|
|
|
|
|
+ date/time settings are hidden until their pill is clicked. A pill toggles
|
|
|
|
|
+ its section in place; the panel resizes itself to the content height (up to
|
|
|
|
|
+ the screen) and scrolls when a section is taller. A popover is a chromeless
|
|
|
|
|
+ `WIN_F_POPOVER`
|
|
|
|
|
+ canvas window (`u_win_create_popover`): the WM skips the title bar/close/
|
|
|
|
|
+ resize chrome and treats it as always topmost in painting and hit-testing.
|
|
|
|
|
+ The canvas fills the whole window rectangle: there is no outer shadow, rim
|
|
|
|
|
+ or rounded corner, so it reads as a flat menu panel. The kernel uses the
|
|
|
|
|
+ window origin for content-relative pointer and scroll coordinates (a normal
|
|
|
|
|
+ window uses the 1 px border plus title bar). An outside press dismisses the
|
|
|
|
|
+ popover and then continues with the normal click handling; a second click
|
|
|
|
|
+ on a status target toggles it.
|
|
|
The last launcher, `Chat`, spawns `/ramfs/bin/chat`; `WM_BTN_END_X`
|
|
The last launcher, `Chat`, spawns `/ramfs/bin/chat`; `WM_BTN_END_X`
|
|
|
(`wm_abi.h`) is the launchers' right edge, and the bar notice and the
|
|
(`wm_abi.h`) is the launchers' right edge, and the bar notice and the
|
|
|
right-aligned status never draw left of it.
|
|
right-aligned status never draw left of it.
|
|
@@ -408,9 +417,16 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
`SYS_WIN_SCROLL`, `SYS_WIN_KEY_WAIT` and the generic `SYS_KEY_POLL` handle
|
|
`SYS_WIN_SCROLL`, `SYS_WIN_KEY_WAIT` and the generic `SYS_KEY_POLL` handle
|
|
|
input. `SYS_WIN_SCROLL` returns scroll accumulated for the canvas window
|
|
input. `SYS_WIN_SCROLL` returns scroll accumulated for the canvas window
|
|
|
under the pointer, in pixels (`+dy` = later content), so every client sees
|
|
under the pointer, in pixels (`+dy` = later content), so every client sees
|
|
|
- one unit independent of whether it came from the touchpad or a wheel. The WM
|
|
|
|
|
|
|
+ one unit independent of whether it came from the touchpad or a wheel.
|
|
|
|
|
+ `SYS_WIN_RESIZE_SELF` (115) lets a canvas window grow or shrink itself and
|
|
|
|
|
+ `SYS_SCREEN_INFO` (116) returns the framebuffer dimensions; the panel uses
|
|
|
|
|
+ them to collapse to the pills or grow over an expanded section. The kernel
|
|
|
|
|
+ refuses a self-resize while the WM owns a frame, and the caller retries. The WM
|
|
|
composites the front canvas; presented frames carry monotonic seq
|
|
composites the front canvas; presented frames carry monotonic seq
|
|
|
- counters, so the WM can never lose one. Closing a window kills its owner;
|
|
|
|
|
|
|
+ counters, so the WM can never lose one. `content_gen` comes from a global
|
|
|
|
|
+ counter and is unique per window creation, so a close followed by a new
|
|
|
|
|
+ window in the same slot forces a remap instead of reusing a stale front
|
|
|
|
|
+ canvas mapping. Closing a window kills its owner;
|
|
|
the reaper frees the canvas. `clock`, `colors`, `settime`,
|
|
the reaper frees the canvas. `clock`, `colors`, `settime`,
|
|
|
`term`, `files` and the other apps are canvas clients. The old
|
|
`term`, `files` and the other apps are canvas clients. The old
|
|
|
`SYS_GFX_BEGIN/PRESENT/END` terminal-takeover service and the kernel
|
|
`SYS_GFX_BEGIN/PRESENT/END` terminal-takeover service and the kernel
|
|
@@ -496,7 +512,8 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
The 10% steps clamp at 5..100% and the level is not persisted across a cold
|
|
The 10% steps clamp at 5..100% and the level is not persisted across a cold
|
|
|
boot. `io.c` maps F6/F7 (the ChromeOS EC action row) and `E0 14`/`E0 15`
|
|
boot. `io.c` maps F6/F7 (the ChromeOS EC action row) and `E0 14`/`E0 15`
|
|
|
(standard brightness scancodes) to `backlight_step()` and consumes them.
|
|
(standard brightness scancodes) to `backlight_step()` and consumes them.
|
|
|
- The `backlight [0-100|up|down|probe]` kernel command is the other interface.
|
|
|
|
|
|
|
+ The `backlight [0-100|up|down|probe]` kernel command and `SYS_BACKLIGHT`
|
|
|
|
|
+ (op 0 get, 1 set, 2 step) are the other interfaces.
|
|
|
`struct wm_status` carries the level and a change counter
|
|
`struct wm_status` carries the level and a change counter
|
|
|
(`backlight_seq()`); the ring-3 WM shows a centered 3 s bubble with a
|
|
(`backlight_seq()`); the ring-3 WM shows a centered 3 s bubble with a
|
|
|
sun icon, the percentage and a bar after each change, and redraws it on
|
|
sun icon, the percentage and a bar after each change, and redraws it on
|
|
@@ -678,15 +695,20 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
`netdev [name]` is a kernel command that shows the active driver or
|
|
`netdev [name]` is a kernel command that shows the active driver or
|
|
|
switches it (`netdev rndis`, `netdev asix`, `netdev e1000e`, ...); it calls
|
|
switches it (`netdev rndis`, `netdev asix`, `netdev e1000e`, ...); it calls
|
|
|
the selected driver's probe and leaves the current driver untouched on
|
|
the selected driver's probe and leaves the current driver untouched on
|
|
|
- failure. The top-bar network icon opens `ucmd_netmenu.c`, which lists every
|
|
|
|
|
- present driver through `SYS_NET_DEVLIST` (111), selects one through
|
|
|
|
|
- `SYS_NET_SELECT` (112) and runs DHCP; the same popover lists scanned WiFi
|
|
|
|
|
- networks, marks the ones in `/data/WIFI.CFG` as saved, joins them with the
|
|
|
|
|
- stored passphrase, and has a Saved view that forgets individual networks.
|
|
|
|
|
- The panel is an ngui popover (a device status card, a scrollable
|
|
|
|
|
- Devices/Wi-Fi/Connection content area with `ngui_section` and
|
|
|
|
|
- `ngui_list_row`, and a footer status line); it opens as a `WIN_F_POPOVER`
|
|
|
|
|
- canvas window anchored under the icon, not as a titled window.
|
|
|
|
|
|
|
+ failure. The top-bar status area opens `ucmd_netmenu.c`, the control
|
|
|
|
|
+ panel. It lists every present driver through `SYS_NET_DEVLIST` (111),
|
|
|
|
|
+ selects one
|
|
|
|
|
+ through `SYS_NET_SELECT` (112) and runs DHCP; the same popover lists scanned
|
|
|
|
|
+ WiFi networks, marks the ones in `/data/WIFI.CFG` as saved, joins them with
|
|
|
|
|
+ the stored passphrase, and has a Saved view that forgets individual networks.
|
|
|
|
|
+ The panel is an ngui popover: a battery/AC and clock summary, a brightness
|
|
|
|
|
+ slider (when a panel PWM exists), and a Quick settings grid of
|
|
|
|
|
+ `ngui_tile`s for Network, the P-state power mode (`SYS_CPUFREQ`) and
|
|
|
|
|
+ Date & Time. Clicking a tile expands that section in place: the network
|
|
|
|
|
+ devices/Wi-Fi/connection area (built with `ngui_section` and
|
|
|
|
|
+ `ngui_list_row`), three power-mode rows, or an inline date/time editor
|
|
|
|
|
+ (fields, Set, Now, Sync NTP — no separate `settime` window). It opens as a
|
|
|
|
|
+ `WIN_F_POPOVER` canvas window, not as a titled window.
|
|
|
Hidden SSIDs are omitted, and
|
|
Hidden SSIDs are omitted, and
|
|
|
BSSIDs that share an SSID/security collapse to the strongest entry (the
|
|
BSSIDs that share an SSID/security collapse to the strongest entry (the
|
|
|
active BSSID wins while connected). `wifi.c` (the Intel
|
|
active BSSID wins while connected). `wifi.c` (the Intel
|
|
@@ -770,7 +792,7 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
`netdev_shutdown()` always calls `wifi_shutdown()` before a kexec (the RX
|
|
`netdev_shutdown()` always calls `wifi_shutdown()` before a kexec (the RX
|
|
|
ring would keep writing into reused pages). The ring-3 side is
|
|
ring would keep writing into reused pages). The ring-3 side is
|
|
|
`ucmd_wifi.c` (`wifi`, `wifi up|scan|connect <ssid> [pass]|disconnect`,
|
|
`ucmd_wifi.c` (`wifi`, `wifi up|scan|connect <ssid> [pass]|disconnect`,
|
|
|
- `wifi connectfile <path>` for the network menu's staged SSID/pass/BSSID
|
|
|
|
|
|
|
+ `wifi connectfile <path>` for the control panel's staged SSID/pass/BSSID
|
|
|
record, `wifi saved` to list the saved networks, `wifi autoconnect` for the
|
|
record, `wifi saved` to list the saved networks, `wifi autoconnect` for the
|
|
|
boot helper and `wifi forget [ssid]`),
|
|
boot helper and `wifi forget [ssid]`),
|
|
|
`wpa.c/h` (4-way + group handshake, key descriptor v2) and
|
|
`wpa.c/h` (4-way + group handshake, key descriptor v2) and
|
|
@@ -896,7 +918,7 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
USB errors, a disconnected port or a re-enumeration set `fatal`, and
|
|
USB errors, a disconnected port or a re-enumeration set `fatal`, and
|
|
|
`wifi.c` reloads on the next use. Tested by QEMU `usb-host` passthrough
|
|
`wifi.c` reloads on the next use. Tested by QEMU `usb-host` passthrough
|
|
|
on xHCI (C-cut chip, firmware 42.4): 2.4 + 5 GHz scan, WPA2-PSK connect
|
|
on xHCI (C-cut chip, firmware 42.4): 2.4 + 5 GHz scan, WPA2-PSK connect
|
|
|
- and DHCP through the network menu.
|
|
|
|
|
|
|
+ and DHCP through the control panel.
|
|
|
- **Mouse**: `mouse.c/h` — cursor move/draw shared by the PS/2 path
|
|
- **Mouse**: `mouse.c/h` — cursor move/draw shared by the PS/2 path
|
|
|
(IntelliMouse including the 4th-byte wheel, Cirrus/Radeon hardware
|
|
(IntelliMouse including the 4th-byte wheel, Cirrus/Radeon hardware
|
|
|
cursor) and the USB backend. Scroll from every backend accumulates in
|
|
cursor) and the USB backend. Scroll from every backend accumulates in
|
|
@@ -1007,7 +1029,8 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
the platform, effective MHz (`APERF`/`MPERF`), current/requested pstate,
|
|
the platform, effective MHz (`APERF`/`MPERF`), current/requested pstate,
|
|
|
and on Nehalem the C3/C6 and package residency; the Airmont line adds the
|
|
and on Nehalem the C3/C6 and package residency; the Airmont line adds the
|
|
|
FSB, nominal MHz, turbo pstate/VID, VID range and the live `PERF_CTL`.
|
|
FSB, nominal MHz, turbo pstate/VID, VID range and the live `PERF_CTL`.
|
|
|
- `cpufreq [auto|min|max|off|<pstate>]` overrides the governor on both.
|
|
|
|
|
|
|
+ `cpufreq [auto|min|max|off|<pstate>]` overrides the governor on both;
|
|
|
|
|
+ `SYS_CPUFREQ` exposes the same mode set/get to the control panel.
|
|
|
- **CPU temperature**: `thermal.c/h` — Intel DTS through `IA32_THERM_STATUS`
|
|
- **CPU temperature**: `thermal.c/h` — Intel DTS through `IA32_THERM_STATUS`
|
|
|
(MSR `0x19C`). Each CPU samples itself once a second from its scheduler
|
|
(MSR `0x19C`). Each CPU samples itself once a second from its scheduler
|
|
|
tick (`struct cpu.temp_c`), and `SYS_CPU_TEMP` (`sys_info.c`) exposes the
|
|
tick (`struct cpu.temp_c`), and `SYS_CPU_TEMP` (`sys_info.c`) exposes the
|
|
@@ -2435,16 +2458,20 @@ and the WM falls back to polling (`io_keyboard_irq_masked()`).
|
|
|
firmware layers, `_end` is ~0x85ca0 with the RTL8821AU driver (~41 KB
|
|
firmware layers, `_end` is ~0x85ca0 with the RTL8821AU driver (~41 KB
|
|
|
below the `0x90000` wall).
|
|
below the `0x90000` wall).
|
|
|
|
|
|
|
|
-36. Network menu limits (`ucmd_netmenu.c`): building the device list probes
|
|
|
|
|
|
|
+36. Control panel limits (`ucmd_netmenu.c`): building the device list probes
|
|
|
every driver, so opening the menu on a machine with an unconfigured USB
|
|
every driver, so opening the menu on a machine with an unconfigured USB
|
|
|
NIC can take a moment (USB control transfers) and may initialize a device
|
|
NIC can take a moment (USB control transfers) and may initialize a device
|
|
|
that was not the boot-time winner. The panel shows at most four device
|
|
that was not the boot-time winner. The panel shows at most four device
|
|
|
rows plus a "+N more devices" line, one menu instance is kept open by the
|
|
rows plus a "+N more devices" line, one menu instance is kept open by the
|
|
|
WM, and WiFi scanning is refused while associated (use Disconnect first).
|
|
WM, and WiFi scanning is refused while associated (use Disconnect first).
|
|
|
- The popover is a 404x520 canvas (with 380x440 and 340x360 fallbacks); the
|
|
|
|
|
- content area scrolls, the connection card can be scrolled away in a long
|
|
|
|
|
- Wi-Fi list, and closing the panel with an outside click kills the netmenu
|
|
|
|
|
- process without cancelling an already started `wifi` helper. The staged
|
|
|
|
|
|
|
+ The panel opens at a compact height (the summary plus the Quick settings
|
|
|
|
|
+ pills) and calls `SYS_WIN_RESIZE_SELF` to grow over an expanded section;
|
|
|
|
|
+ it is clamped to the screen and the section scrolls when it is taller.
|
|
|
|
|
+ The brightness card and the Power mode pill are hidden when the machine
|
|
|
|
|
+ has no panel PWM / P-state control. The inline Date & Time editor writes
|
|
|
|
|
+ the RTC and can block for a 5 s NTP sync. Closing the panel with an
|
|
|
|
|
+ outside click kills the netmenu process without cancelling an already
|
|
|
|
|
+ started `wifi` helper. The staged
|
|
|
`/share/netmenu.wifi` record contains the WPA2 passphrase until the
|
|
`/share/netmenu.wifi` record contains the WPA2 passphrase until the
|
|
|
`wifi` helper reads and unlinks it; the path is fixed, so two concurrent
|
|
`wifi` helper reads and unlinks it; the path is fixed, so two concurrent
|
|
|
netmenu instances (e.g. one launched from a terminal) would overwrite
|
|
netmenu instances (e.g. one launched from a terminal) would overwrite
|