COSCUP
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee
    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Sharing URL Help
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee
  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # Open Software On An Open Convertible Laptop {%hackmd @coscup/announcement-2025 %} > 請從這裡開始 ###### tags: `COSCUP2025`, `en`, `intermediate` Slides: https://docs.google.com/presentation/d/1rwHa_Dz13ADSR8pSg-swqJyXLDCtxx2Fa50ehwggfws/edit?usp=sharing ## Who am I? ## What is Framework * 產品都在台灣組裝 ## Last Year * Framework 13 * Framework 16 ## This year * Framework 12 * Framework Desktop ## What's a convertible? * 螢幕可 180度翻轉 * 但是這個時候鍵盤會被禁用 ## What's does a convertible do * Tablet mode * 螢幕旋轉會被啟用 * 手寫筆有很多協定所以很難作 ## How does it do that? * 加速度計跟 Hall sensor * hall sensor 用來偵測螢幕不完全翻轉的 case (0/360度,fully-open/closed) * 機制都做在 EC * 觸控螢幕使用標準 I2C HID 協議 ## First power on * 是在 FreeBSD(因為工程師的 Linux 都在磁碟加密上面 * 螢幕跟觸控螢幕都可以鄭作 ## Tablet mode - Linux * 有很多種作法、Daemon 跟程式語言實作,很混亂 * 不同的桌面環境要怎麼支援? * ACPI? * Standard? PNP0C60 * Intel: INT33D6, INT33D5, INTC1078 * Google (for chromebooks) * AMD * Lenovo * 使用標準的 ACPI 發現可以動 ## Tablet mode - Windows * 有 GPIO Laptop and Slate indicator driver 可以用 ## G-Sensor - Linux * 使用跟 ChromeOS 同一套 EC,只需要加上硬體識別碼就好 ## G-sensor - Windows * 因為沒 Chromebook 驅動只好自己寫 * 修改 coolstar 的 EC 通訊實作實現 ## Windows driver development 1. 使用 VS 建構(也可以用命令列界面) 2. 使用特殊的 USB-A 傳輸線與 WinDBG kernel debugger 來除錯 3. 跑 HLK (Windows Hardware Lab Kit) 測試 * Windows 驗證驅動規定因為 Crowdstrike 事件變嚴格 4. 要用 EV 憑證 HLK 測試結果(RSA 憑證問題所以又多花了幾百美元) 5. 上傳到 WHQL ## Full stack sumamry 1. EC 讀取 hall sensor 跟加速度計算出螢幕角度 1. EC 設定 GPIO 1. CPU 透過 ACPI(soc_button_array) OS 中斷 1. OS 透過 SW_TABLET_MODE keycode 通知桌面環境 -> 切換到 tablet mode 1. OS 加速度計驅動讀取 EC 螢幕 sensor 1. 螢幕旋轉驅動/軟體作剩下的事 ## Stylus protocols * MPP(Microsoft) vs. USI(Google) * 對作業系統來說都是 HID 標準,所以 Linux 跟 Windows 都可動 * USI 才支援報告手寫筆電量 * USI 標準文件要成為會員才能拿到 ## Keyboard and touchpad should be disabled * Chrome EC 會自動禁用鍵盤 * Linux 上 libinput 可以自動處理 * Windows 上微軟叫你自己想辦法 * 最後要多給 touchpad 一個 GPIO 來自 EC 禁用 ## iio-sensor-proxy * 可以獲取原生 g-sensor 資料 * 但是產品釋出之前有一個 regression * 將修正發布到作業系統散步版要花很多時間 * 昨天(COSCUP第一天)晚上終於釋出了包含修正的新版本 ## Summary * 可以到 GitHub 看 EC 韌體的原始碼 * BIOS 中的 ACPI code 可以從作業系統讀到所以形同開源(?) ## Q&A ### When does it (Framework 12) ship? Already shipping, current batches sold out, can pre-order and new orders ship in a few weeks.

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully