Page MenuHomeFreeBSD

Update devd patch for x11-servers/xorg-server
ClosedPublic

Authored by ak on Oct 29 2014, 8:31 PM.
Tags
None
Referenced Files
Unknown Object (File)
Jan 3 2024, 1:33 PM
Unknown Object (File)
Dec 15 2023, 6:10 AM
Unknown Object (File)
Nov 18 2023, 10:25 AM
Unknown Object (File)
Nov 18 2023, 3:45 AM
Unknown Object (File)
Nov 18 2023, 3:25 AM
Unknown Object (File)
Oct 15 2023, 1:29 PM
Unknown Object (File)
Jul 30 2023, 12:27 PM
Unknown Object (File)
Jul 29 2023, 3:53 PM
Subscribers

Details

Reviewers
ak
Group Reviewers
x11
Summary

Update to devd patch. Add warning in case if device file is already opened, add ability to survive devd restart. The patch is against xorg-dev repo.

Test Plan

Apply the patch. Build and start xorg, check log for 'already opened' warning for at least one (attached to console) keyboard, restart devd, plug/unplug keyboard(s)/mouse(s).

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

ak retitled this revision from to Update devd patch for x11-servers/xorg-server.
ak updated this object.
ak edited the test plan for this revision. (Show Details)
ak added a reviewer: x11.
ak set the repository for this revision to rP FreeBSD ports repository.
dumbbell added inline comments.
x11-servers/xorg-server/files/extra-new-devd
248 ↗(On Diff #2151)

Typo: s/devoce/device/ and s/it attached/is attached/

I would rephrase like this:

Don't pass "device" option if the device is a keyboard and is already attached to the console (ie. open() fails). This would activate a special logic in xf86-input-keyboard.

bapt added inline comments.
x11-servers/xorg-server/files/extra-new-devd
76 ↗(On Diff #2151)

Why removing uhid?

76 Why removing uhid?

Good catch! This is my local change sneaked in. My keyboard has multimedia keys which attach to uhid and xorg busies the device file. On the other hand, I've never seen mouse with uhid device. Perhaps there is no harm to keep this change.

Improve the comment for keyboard's check.

Sync with github.com/freebsd/freebsd-ports-graphics repo:

  • Fix mix of tab and spaces, make indentation consistent
  • Cleanup of extra-devd patch
    • Use true/false instead od 0/1 as return value from the bool function
    • Combine two similar checks
    • Rearrange logic to remove goto and gratuitous continue
    • Add todo comment about usb_id
    • Misc: s/LogMessageVerb/LogMessage/, wrap comment, lowercase two error messages
ak added a reviewer: ak.
This revision is now accepted and ready to land.Dec 3 2014, 1:02 PM