Unity doesn’t work after swap drive to new machine

As titled, keyboard mapping doesn’t work. Everything elses sorted of work. Volume up/down, brightness up/down no longer function. Gnome works without problem. Can’t find an elegant solution. My current workaround is to use xbindkey. Create .xbindkeyrc and include To find keybinding, can try the command xev