Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> ระบบ >> Linux

จากการสลับไป Wayland จนถึง Real-world Challenges: ประสบการณ์จากภายใน

หลายปี Linux World พูดถึง Wayland แบบคนพูด Flying Cars มันคือ Future มัน Cleaner มัน Fix Ancient Design Problems และจะทำให้ทุกอย่าง Better Eventually ความอยากรู้ชนะ ผม Logout จาก X.Org Session ปกติ และ Switch ไป Wayland เพื่อดูว่ามันตื่นเต้นที่ไหน

Result คือ... เรียกว่า Educational

บางอย่างรู้สึก Smoother Modern ทันที อื่นๆ รู้สึกเหมือนเดินเข้าอาคาร Renovated ใหม่ สียังแห้งไม่สนิท และใครบางคนลืม Reconnect Light Switches ครึ่งหนึ่ง Wayland ทำงาน บ่อยครั้งดีมาก แตพอคุณเริ่มใช้ System ตามปกติ Rough Edges โชว์เร็ว ไม่มีอะไร Catastrophic แตทำชัดเจนว่า Linux ยังอยู่กลาง Transition Desktop ใหญ่ที่สุดในหลายทศวรรษ

Screen Capture กลายเป็น Negotiation

Wayland จัดการ Screenshots และ Recordings ต่างออกไป

จากการสลับไป Wayland จนถึง Real-world Challenges: ประสบการณ์จากภายใน

Surprise แรกมาตอนพยายาม Record Screen ภายใต้ X.Org Screen Capture คือ Almost Suspiciously Simple Applications สังเกต Display โดยตรง ซึ่งเป็นวิธีที่ Tools อย่าง OBS Studio ทำงานมาปีแล้ว Screenshot Utilities พฤติกรรมเหมือนกัน พวกเขาแค่ Grab ใดๆ บนจอและไปต่อ Wayland เปลี่ยน Model นั้นหมด แทนที่จะให้ Apps Capture Display ฟรี Wayland Route Access นั้นผ่าน Systems อย่าง PipeWire Applications Request Permission จาก Desktop Environment ซึ่งจึง Securely Provide Access ไปที่ Screen

มุมมอง Privacy นี่ Fantastic Random Apps ไม่สามารถ Spy Desktop Activity ได้อีกแล้ว มุมมอง User มันรู้สึกเหมือนหลายส่วนของระบบต้องประชุมสั้นๆ ก่อน Approve Screenshot Modern Tools จัดการ Process นี้ได้ดี แต Older Utilities บางครั้ง Struggle Screenshot Tools บางตัวเปิด Permission Dialogs บ่อยกว่าคาด บางตัวพฤติกรรมเหมือนลืมอย่างกะทันหันว่า Screen Capture ทำงานยังไง ไม่มีอะไร Fundamentally Broken แตทำให้ Experience รู้สึก Complicated กว่าเดิม

บาง Apps ยังคาดหวัง X11 อยู่ดี

Compatibility Layers ช่วย แตไม่ Perfect

Linux มี Software ทศวรรษสร้างรอบ X11 Behavior และ History นั้นไม่หายไปในคืนเดียว หลาย Applications รันภายใต้ Wayland ขึ้นอยู่กับ Compatibility Layer ที่เรียกว่า XWayland ในกรส่วนใหญ่ เกิดขึ้น Invisible ใน Background Launch App มันเปิด Normal ทุกอย่างดู Fine

ส่วนใหญ่ Illusion นั้น Hold Up แตทุกเมื่อบางอย่างพฤติกรรมแปลกเล็กน้อย Window อาจยืนยันเปิดใน Position ไม่คาดคิด Keyboard Shortcut พฤติกรรมต่างจากเดิม บางครั้ง Graphical Glitch ปรากฏที่ไม่เคยมีภายใต้ X11 Issues นี้ Usually Minor แต Reveal สิ่งสำคัญ: Linux Ecosystem ยัง Transitioning ออกจาก X11 อยู่ หลาย Apps Wayland-aware แล้ว แต่อื่นๆ ยัง Adapting พอทุกอย่าง Work Compatibility Layer คือ Almost Magical พออะไรไม่ Work รู้สึกเหมือน App เดินทางผิด Display Server

Desktop Shortcuts และ Automation พฤติกรรมต่างออกไป

Wayland จำกัดวิธี Apps โต้ตอบกับ System

Wayland เปลี่ยนวิธี Applications โต้ตอบกับ Desktop เอง ภายใต้ X11 Utilities หลายตัว Observe System-wide Keyboard Input Register Global Shortcuts หรือโต้ตอบ Freely กับ Windows อื่นๆ Flexibility นั้นให้ Power Users สร้าง Automation Workflows และ Keyboard-driven Setups ซับซ้อน มันยังสร้าง Security Hole ใหญ่ Wayland Tighten Boundaries นั้น Applications ไม่สามารถ Casually Monitor Global Input Events หรือ Manipulate Windows อื่นๆ ได้โดยไม่ได้ Permission สำหรับ Most Users การเปลี่ยนแปลงนี้ Unnoticed Basic Keyboard Shortcuts ทำงานต่อใน Desktop Environment

สำหรับ Power Users ความแตกต่างอาจชัดเจน Automation Tools, Macro Utilities, และ Window Management Helpers บางอย่าง พฤติกรรมต่างภายใต้ Wayland บางอย่างต้อง Update อื่นๆ ต้องการ Desktop Environments Provide Official APIs แทนที่จะ Rely Free-for-all Access ที่ X11 อนุญาต นี่不一定是 Flaw ของ Wayland เป็น Consequence ของการทำ Desktop Environment Secure มากขึ้น แตถ้าคุณใช้ปีรวบรวม Keyboard Shortcuts และ Automation Tools อย่างระมัดระวัง Wayland รู้สึกเหมือนมีคนเงียบๆ Rearrange Toolbox ขณะคุณนอนหลับ

Clipboard Tricks และ Linux Muscle Memory อาจแปลก

Wayland เปลี่ยนวิธี Clipboard Access ทำงาน

จากการสลับไป Wayland จนถึง Real-world Challenges: ประสบการณ์จากภายใน

Linux มี Small Feature ที่ Longtime Users ชอบ: Middle-click Paste Highlight Text Move Cursor ที่อื่น Click Middle Mouse Button Text ปรากฏทันที ไม่ต้อง Copy Command ภายใต้ X11 นี่ทำงานเพราะ Apps Freely Access Clipboard Selections และ Exchange Data ไม่มากกว่า Restrictions Wayland Tighten Rules Apps ไม่สามารถ Casually Inspect Clipboard Contents ได้เว้นแต่ Active ใน Copy Process นี่ Improve Security โดยป้องกัน Apps Quietly Harvest Clipboard Data

Downside คือ Clipboard Managers และ Utilities บางอย่างต้อง Update เพื่อ Work Properly ภายใต้ Wayland ขึ้นอยู่กับ Desktop Environment Clipboard History Tools อาจพฤติกรรมต่าง Middle-click Paste อาจ Feel Slightly Inconsistent ในบาง Apps Tools ที่เคย Track Every Copied Item อาจต้องการ Wayland Support เพิ่มเติม ไม่มีอะไร Break Everyday Copy-paste แตอาจ Surprise Longtime Linux Users ที่พึ่งพา X11 Tricks เล็กๆ นี้มาปีแล้ว สำหรับ New Users Wayland Behavior น่าจะรู้สึก Normal เลย สำหรับ Veteran Linux Users มันบางครั้งรู้สึกเหมือนมีคน Reorganize Kitchen ขณะคุณยังทำอาหารอยู่

Graphics Drivers ทำรูปแบบ Wayland Experience

จากการสลับไป Wayland จนถึง Real-world Challenges: ประสบการณ์จากภายใน

ถ้า System รัน Nvidia GPU คุณอาจสังเกต Wayland Transition มากกว่า User อื่นๆ หลายปี NVIDIA Proprietary Drivers เข้า Linux Graphics Stack ต่างจาก Ecosystem อื่นๆ ในขณะที่ Desktop Environments 适应 Wayland 漸漸 NVIDIA Driver Architecture ไม่ได้ Align เสมอไปกับวิธีที่ Wayland Compositors คาดหวัง Result คือ Long Stretch ที่ Wayland Sessions และ NVIDIA Hardware ไม่ Cooperate 好 Users Report Graphical Glitches, Missing Features, Sessions Unpredictable เป็นเวลานาน Common Advice 単純: ถ้าใช้ NVIDIA อยู่กับ X11

Things Improved Significantly 近年 Driver Updates และ Collaboration กับ Desktop Projects Smooth Out Biggest Issues Modern Wayland Sessions Run Far Better บน NVIDIA Hardware แม้จะ Even So Experience ยัง Vary ขึ้นอยู่กับ Driver Version, GPU Generation, และ Desktop Environment Systems กับ Intel หรือ AMD Graphics บ่อยครั้ง Predictable มากกว่า เพราะ Drivers Follow Same Development Path กับ Linux Graphics Stack แบบกว้าง Wayland Absolutely Usable บน Nvidia Hardware วันนี้ Many Users รัน Daily ไม่มี Problems แตถ้า System รวม Nvidia GPU คุณอาจพบตัวเอง Pay Closer Attention ถึง Transition Behavior ซึ่ง เพื่อเป็น Fair เป็น Very Linux Experience

จากการสลับไป Wayland จนถึง Real-world Challenges: ประสบการณ์จากภายใน เนื้อหาที่เกี่ยวข้อง

อนาคตของ Linux Graphics กำลังมาทีละนิด

หลังใช้ Wayland คำอธิบายที่ Accurate ที่สุดคือ มันรู้สึก Modern และ Unfinished พร้อมกัน Architecture Makes Sense Security Stronger Graphics Pipeline Cleaner ในหลาย Situations Desktop รู้สึก Smoother Responsive แต Ecosystem รอบ Wayland ยัง Catching Up บาง Apps Assume X11 Behavior Utilities บางอย่างต้อง Update Workflows Linux บางอย่างต้อง Adjust เล็กน้อยเพื่อ Function แบบ Wayland ไม่มีอะไรทำให้ Wayland Unusable จริงๆ หลาย Linux Users รัน Wayland Daily โดยไม่คิดถึงมัน

แตพอคุณก้าวออกนอก Common Workflows เล็กน้อย Transition กลายเป็น Visible Wayland ไม่ใช่ Experiment อีกแล้ว มันเป็น Functioning Part ของ Linux Desktop ในเวลาเดียวกัน มันยังรู้สึกเหมือน City Under Renovation ในขณะที่ทุกคนยังอาศัยอยู่ ถนนเปิด อาคารทำงาน สิ่งส่วนใหญ่ลื่น แต่บางครั้งคุณเลี้ยวมุม และเห็น Construction Sign เล็กๆ เตือนว่า Rebuild ยังไม่เสร็จสิ้น