{"id":34700542,"url":"https://github.com/spinualexandru/asus-rog-touchpad-driver","last_synced_at":"2026-05-09T07:33:21.423Z","repository":{"id":327561745,"uuid":"1109711740","full_name":"spinualexandru/asus-rog-touchpad-driver","owner":"spinualexandru","description":"Asus ROG Touchpad Driver","archived":false,"fork":false,"pushed_at":"2026-04-29T19:36:48.000Z","size":34,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-29T21:30:03.465Z","etag":null,"topics":["archlinux","asus","asus-linux","asus-rog","driver","just","linux","linux-driver","rust","touchpad","touchpad-driver"],"latest_commit_sha":null,"homepage":"https://github.com/spinualexandru/asus-rog-touchpad-driver","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/spinualexandru.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-04T07:16:42.000Z","updated_at":"2026-04-29T19:36:52.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/spinualexandru/asus-rog-touchpad-driver","commit_stats":null,"previous_names":["spinualexandru/asus-rog-touchpad-driver"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/spinualexandru/asus-rog-touchpad-driver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spinualexandru%2Fasus-rog-touchpad-driver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spinualexandru%2Fasus-rog-touchpad-driver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spinualexandru%2Fasus-rog-touchpad-driver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spinualexandru%2Fasus-rog-touchpad-driver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spinualexandru","download_url":"https://codeload.github.com/spinualexandru/asus-rog-touchpad-driver/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spinualexandru%2Fasus-rog-touchpad-driver/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32811401,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["archlinux","asus","asus-linux","asus-rog","driver","just","linux","linux-driver","rust","touchpad","touchpad-driver"],"created_at":"2025-12-24T22:51:27.531Z","updated_at":"2026-05-09T07:33:21.418Z","avatar_url":"https://github.com/spinualexandru.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ASUS ROG Touchpad Numpad Driver\n\nA Linux driver written in Rust that enables the illuminated numpad feature on ASUS ROG laptop touchpads.\n\n## Features\n\n- **Numpad Toggle**: Tap the top-right corner of the touchpad to enable/disable the numpad overlay\n- **LED Backlight Control**: Native I2C communication to control the numpad LED backlight\n- **Brightness Cycling**: Tap the top-left corner (when numpad is active) to cycle through brightness levels\n- **Calculator Shortcut**: Tap the top-left corner (when numpad is off) to launch the calculator\n- **Virtual Keyboard**: Injects numpad key events via uinput\n- **Auto-restart**: Systemd service with automatic restart on failure\n- **Low Resource Usage**: Efficient Rust implementation with minimal CPU overhead\n\n## Supported Devices\n\n| Model | Touchpad ID | Status |\n|-------|-------------|--------|\n| ROG Strix SCAR 16 G634JY | ASUF1416:00 2808:0108 | Fully supported |\n| ROG Strix SCAR 16 G634JYR | ASUF1416:00 2808:0108 | Fully supported |\n\nMore ASUS models with numpad-enabled touchpads can be added by creating new layout configurations.\n\n## Installation\n\n### Arch Linux (PKGBUILD)\n\n```bash\ngit clone https://github.com/spinualexandru/asus-rog-touchpad-driver.git\ncd asus-rog-touchpad-driver\nmakepkg -si\n```\n\nThis builds and installs a proper Arch package with:\n- Automatic dependency resolution\n- Clean uninstall via `pacman -R asus-rog-touchpad-numpad`\n- Service auto-enabled on install\n\n### Using Just (Any Distribution)\n\nRequires [just](https://github.com/casey/just) command runner.\n\n```bash\ngit clone https://github.com/spinualexandru/asus-rog-touchpad-driver.git\ncd asus-rog-touchpad-driver\njust install\n```\n\nThis will:\n1. Check cargo is configured\n2. Build the release binary\n3. Install the binary to `/usr/bin/`\n4. Configure the i2c-dev kernel module\n5. Install and start the systemd service\n\nTo see required dependencies for your distribution:\n```bash\njust deps\n```\n\n## Manual Installation\n\n### Dependencies\n\n**Arch Linux:**\n```bash\nsudo pacman -S just rust libevdev\n```\n\n**Debian/Ubuntu:**\n```bash\nsudo apt install just cargo libevdev-dev pkg-config\n```\n\n**Fedora:**\n```bash\nsudo dnf install just rust cargo libevdev-devel pkg-config\n```\n\n### Build\n\n```bash\ncargo build --release\n```\n\n### Install\n\n```bash\n# Install binary\nsudo cp target/release/asus-rog-touchpad-numpad /usr/bin/\nsudo chmod 755 /usr/bin/asus-rog-touchpad-numpad\n\n# Load i2c-dev kernel module\nsudo modprobe i2c-dev\necho \"i2c-dev\" | sudo tee /etc/modules-load.d/i2c-dev.conf\n\n# Install systemd service\nsudo cp asus-rog-touchpad.service /etc/systemd/system/\nsudo systemctl daemon-reload\nsudo systemctl enable --now asus-rog-touchpad\n```\n\n## Usage\n\n### Touchpad Gestures\n\n| Gesture | Numpad Off | Numpad On |\n|---------|------------|-----------|\n| Tap top-right corner | Enable numpad | Disable numpad |\n| Tap top-left corner | Launch calculator | Cycle brightness |\n| Tap numpad area | Normal touchpad | Enter numpad key |\n\n### Numpad Layout (G634JY)\n\n```\n┌─────┬─────┬─────┬─────┬─────┐\n│  7  │  8  │  9  │  /  │ ⌫  │\n├─────┼─────┼─────┼─────┼─────┤\n│  4  │  5  │  6  │  *  │ ⌫  │\n├─────┼─────┼─────┼─────┼─────┤\n│  1  │  2  │  3  │  -  │ ⏎  │\n├─────┼─────┼─────┼─────┼─────┤\n│  0  │  0  │  .  │  +  │ ⏎  │\n└─────┴─────┴─────┴─────┴─────┘\n```\n\n### Service Management\n\n```bash\njust status   # Check status\njust restart  # Restart service\njust stop     # Stop service\njust logs     # View logs (follow)\njust run      # Run manually with debug logging\n```\n\n## Configuration\n\n### Command Line Arguments\n\n```\nasus-rog-touchpad-numpad [MODEL] [PERCENTAGE_KEY]\n\nArguments:\n  MODEL           Layout model to use (default: g634jy)\n  PERCENTAGE_KEY  Key code for % symbol (default: 6 for Qwerty, 40 for Azerty)\n```\n\n### Environment Variables\n\n| Variable | Description | Default |\n|----------|-------------|---------|\n| `RUST_LOG` | Log level (error, warn, info, debug, trace) | info |\n\n### Debug Mode\n\nTo run with verbose logging:\n\n```bash\nsudo RUST_LOG=debug /usr/bin/asus-rog-touchpad-numpad\n```\n\n## Troubleshooting\n\n### Numpad not activating\n\n1. Check if the service is running:\n   ```bash\n   systemctl status asus-rog-touchpad\n   ```\n\n2. Check if i2c-dev module is loaded:\n   ```bash\n   lsmod | grep i2c_dev\n   ```\n\n3. Verify touchpad is detected:\n   ```bash\n   grep -E \"ASUE|ASUF|ELAN\" /proc/bus/input/devices\n   ```\n\n### LED backlight not working\n\n1. Check I2C bus detection:\n   ```bash\n   sudo i2cdetect -l | grep -i designware\n   ```\n\n2. The driver will log a warning if LED control fails but will continue to function for numpad input.\n\n### Permission denied errors\n\nEnsure you're running as root or the service is running with proper permissions:\n```bash\nsudo systemctl restart asus-rog-touchpad\n```\n\n### Service fails to start on boot\n\nSome systems may need a delay before the touchpad is ready. Edit the service file:\n\n```bash\nsudo systemctl edit asus-rog-touchpad\n```\n\nAdd:\n```ini\n[Service]\nExecStartPre=/bin/sleep 2\n```\n\n## Uninstall\n\n**Arch Linux (if installed via PKGBUILD):**\n```bash\nsudo pacman -R asus-rog-touchpad-numpad\n```\n\n**Other distributions (if installed via just):**\n```bash\njust uninstall\n```\n\n## Development\n\n### Project Structure\n\n```\nsrc/\n├── main.rs           # Entry point, CLI, event loop\n├── error.rs          # Custom error types\n├── device/           # Device detection\n├── i2c/              # I2C LED control\n├── input/            # Touchpad \u0026 virtual keyboard\n├── layouts/          # Numpad layout definitions\n└── numpad/           # State machine\n```\n\n### Adding a New Layout\n\n1. Create a new file in `src/layouts/` (e.g., `newmodel.rs`)\n2. Implement the `NumpadLayout` trait\n3. Add the layout to `src/layouts/mod.rs`\n4. Rebuild and test\n\nExample layout:\n\n```rust\nuse super::NumpadLayout;\nuse evdev::KeyCode;\n\npub struct NewModelLayout {\n    keys: [[KeyCode; 5]; 4],\n}\n\nimpl NumpadLayout for NewModelLayout {\n    fn name(\u0026self) -\u003e \u0026'static str { \"newmodel\" }\n    fn cols(\u0026self) -\u003e u32 { 5 }\n    fn rows(\u0026self) -\u003e u32 { 4 }\n    fn top_offset(\u0026self) -\u003e f64 { 0.10 }\n    // ... implement remaining methods\n}\n```\n\n### Building for Development\n\n```bash\njust build        # Release build\njust build-debug  # Debug build\njust run          # Build and run with debug logging\njust run-debug    # Build debug and run with logging\njust clean        # Clean build artifacts\n```\n\nOr with cargo directly:\n```bash\ncargo build --release\nRUST_LOG=debug sudo -E ./target/release/asus-rog-touchpad-numpad\n```\n\n## Contributing\n\nContributions are welcome! Please feel free to submit issues and pull requests.\n\nWhen adding support for a new device:\n1. Run with debug logging to capture touchpad coordinates\n2. Create a new layout file\n3. Test thoroughly before submitting\n\n## License\n\nThis project is licensed under the GPL 2.0 - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspinualexandru%2Fasus-rog-touchpad-driver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspinualexandru%2Fasus-rog-touchpad-driver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspinualexandru%2Fasus-rog-touchpad-driver/lists"}